[pulseaudio-commits] r2347 - in /branches/glitch-free/src/pulsecore: sink.c source.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu May 1 18:26:11 PDT 2008
Author: lennart
Date: Fri May 2 03:26:10 2008
New Revision: 2347
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2347&root=pulseaudio&view=rev
Log:
only send PA_SINK_MESSAGE_SET_STATE if there's still an asyncmsqg around to do so
Modified:
branches/glitch-free/src/pulsecore/sink.c
branches/glitch-free/src/pulsecore/source.c
Modified: branches/glitch-free/src/pulsecore/sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/sink.c?rev=2347&root=pulseaudio&r1=2346&r2=2347&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/sink.c (original)
+++ branches/glitch-free/src/pulsecore/sink.c Fri May 2 03:26:10 2008
@@ -272,8 +272,9 @@
if ((ret = s->set_state(s, state)) < 0)
return -1;
- if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_SET_STATE, PA_UINT_TO_PTR(state), 0, NULL) < 0)
- return -1;
+ if (s->asyncmsgq)
+ if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_SET_STATE, PA_UINT_TO_PTR(state), 0, NULL) < 0)
+ return -1;
s->state = state;
Modified: branches/glitch-free/src/pulsecore/source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/source.c?rev=2347&root=pulseaudio&r1=2346&r2=2347&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/source.c (original)
+++ branches/glitch-free/src/pulsecore/source.c Fri May 2 03:26:10 2008
@@ -235,8 +235,9 @@
if ((ret = s->set_state(s, state)) < 0)
return -1;
- if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_SET_STATE, PA_UINT_TO_PTR(state), 0, NULL) < 0)
- return -1;
+ if (s->asyncmsgq)
+ if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_SET_STATE, PA_UINT_TO_PTR(state), 0, NULL) < 0)
+ return -1;
s->state = state;
More information about the pulseaudio-commits
mailing list