mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
pulsesink: start unmuted when requested
When we explicitely set the mute property to FALSE, connect to pulseaudio with the PA_STREAM_START_UNMUTED flag set, otherwise pulseaudio will use its previously used value (which might start the stream muted). Fixes https://bugzilla.gnome.org/show_bug.cgi?id=672401
This commit is contained in:
parent
a473750350
commit
c0140982ee
1 changed files with 6 additions and 2 deletions
|
@ -904,8 +904,12 @@ gst_pulseringbuffer_acquire (GstAudioRingBuffer * buf,
|
||||||
flags = PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_AUTO_TIMING_UPDATE |
|
flags = PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_AUTO_TIMING_UPDATE |
|
||||||
PA_STREAM_ADJUST_LATENCY | PA_STREAM_START_CORKED;
|
PA_STREAM_ADJUST_LATENCY | PA_STREAM_START_CORKED;
|
||||||
|
|
||||||
if (psink->mute_set && psink->mute)
|
if (psink->mute_set) {
|
||||||
flags |= PA_STREAM_START_MUTED;
|
if (psink->mute)
|
||||||
|
flags |= PA_STREAM_START_MUTED;
|
||||||
|
else
|
||||||
|
flags |= PA_STREAM_START_UNMUTED;
|
||||||
|
}
|
||||||
|
|
||||||
/* we always start corked (see flags above) */
|
/* we always start corked (see flags above) */
|
||||||
pbuf->corked = TRUE;
|
pbuf->corked = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue