[vlc-commits] PulseAudio: add an assertion (refs #5825)

Rémi Denis-Courmont git at videolan.org
Thu May 3 22:01:18 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 23 21:26:21 2012 +0300| [e7e30875a805b264b0981eb00e181b4e7199c43b] | committer: Rémi Denis-Courmont

PulseAudio: add an assertion (refs #5825)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e7e30875a805b264b0981eb00e181b4e7199c43b
---

 modules/audio_output/pulse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 904f794..a0622f0 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -519,6 +519,8 @@ static void Play(audio_output_t *aout, block_t *block)
     aout_sys_t *sys = aout->sys;
     pa_stream *s = sys->stream;
 
+    assert (sys->paused == VLC_TS_INVALID);
+
     const void *ptr = data_convert(&block);
     if (unlikely(ptr == NULL))
         return;



More information about the vlc-commits mailing list