mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
don't try to send pause request before our stream is properly set up
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1989 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
33c238b7ef
commit
5ef242c5b3
1 changed files with 5 additions and 2 deletions
|
|
@ -230,6 +230,9 @@ static void stream_cork(struct userdata *u, pa_bool_t cork) {
|
||||||
else
|
else
|
||||||
pa_smoother_resume(u->smoother, pa_rtclock_usec());
|
pa_smoother_resume(u->smoother, pa_rtclock_usec());
|
||||||
|
|
||||||
|
if (!u->pstream)
|
||||||
|
return;
|
||||||
|
|
||||||
t = pa_tagstruct_new(NULL, 0);
|
t = pa_tagstruct_new(NULL, 0);
|
||||||
#ifdef TUNNEL_SINK
|
#ifdef TUNNEL_SINK
|
||||||
pa_tagstruct_putu32(t, PA_COMMAND_CORK_PLAYBACK_STREAM);
|
pa_tagstruct_putu32(t, PA_COMMAND_CORK_PLAYBACK_STREAM);
|
||||||
|
|
@ -811,7 +814,7 @@ static void setup_complete_callback(pa_pdispatch *pd, uint32_t command, uint32_t
|
||||||
pa_tagstruct_putu32(reply, PA_INVALID_INDEX);
|
pa_tagstruct_putu32(reply, PA_INVALID_INDEX);
|
||||||
pa_tagstruct_puts(reply, u->sink_name);
|
pa_tagstruct_puts(reply, u->sink_name);
|
||||||
pa_tagstruct_putu32(reply, u->maxlength);
|
pa_tagstruct_putu32(reply, u->maxlength);
|
||||||
pa_tagstruct_put_boolean(reply, FALSE);
|
pa_tagstruct_put_boolean(reply, !PA_SINK_OPENED(pa_sink_get_state(u->sink)));
|
||||||
pa_tagstruct_putu32(reply, u->tlength);
|
pa_tagstruct_putu32(reply, u->tlength);
|
||||||
pa_tagstruct_putu32(reply, u->prebuf);
|
pa_tagstruct_putu32(reply, u->prebuf);
|
||||||
pa_tagstruct_putu32(reply, u->minreq);
|
pa_tagstruct_putu32(reply, u->minreq);
|
||||||
|
|
@ -827,7 +830,7 @@ static void setup_complete_callback(pa_pdispatch *pd, uint32_t command, uint32_t
|
||||||
pa_tagstruct_putu32(reply, PA_INVALID_INDEX);
|
pa_tagstruct_putu32(reply, PA_INVALID_INDEX);
|
||||||
pa_tagstruct_puts(reply, u->source_name);
|
pa_tagstruct_puts(reply, u->source_name);
|
||||||
pa_tagstruct_putu32(reply, u->maxlength);
|
pa_tagstruct_putu32(reply, u->maxlength);
|
||||||
pa_tagstruct_put_boolean(reply, 0);
|
pa_tagstruct_put_boolean(reply, !PA_SOURCE_OPENED(pa_source_get_state(u->source)));
|
||||||
pa_tagstruct_putu32(reply, u->fragsize);
|
pa_tagstruct_putu32(reply, u->fragsize);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue