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

Rémi Denis-Courmont git at videolan.org
Mon Apr 23 20:26:39 CEST 2012


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

PulseAudio: add an assertion (refs #5825)

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

 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