[vlc-commits] PulseAudio: report policy stream events (refs #5101)
Rémi Denis-Courmont
git at videolan.org
Wed Aug 8 18:20:39 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 8 19:20:03 2012 +0300| [7d19f1dd0860cc9afce0230ae21df04cd912a184] | committer: Rémi Denis-Courmont
PulseAudio: report policy stream events (refs #5101)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d19f1dd0860cc9afce0230ae21df04cd912a184
---
modules/audio_output/pulse.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index f579398..db5bfbb 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -372,6 +372,12 @@ static void stream_event_cb(pa_stream *s, const char *name, pa_proplist *pl,
{
audio_output_t *aout = userdata;
+ if (!strcmp(name, PA_STREAM_EVENT_REQUEST_CORK))
+ aout_PolicyReport(aout, true);
+ else
+ if (!strcmp(name, PA_STREAM_EVENT_REQUEST_UNCORK))
+ aout_PolicyReport(aout, false);
+ else
#if PA_CHECK_VERSION(1,0,0)
/* FIXME: expose aout_Restart() directly */
if (!strcmp(name, PA_STREAM_EVENT_FORMAT_LOST)) {
More information about the vlc-commits
mailing list