[vlc-commits] sndio: clear sync state when resuming from pause

Rémi Denis-Courmont git at videolan.org
Fri Nov 16 17:47:37 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Nov 16 18:39:51 2012 +0200| [03c7740cacdfb9173480b94d8aafa249a931dd5b] | committer: Rémi Denis-Courmont

sndio: clear sync state when resuming from pause

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

 modules/audio_output/sndio.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/audio_output/sndio.c b/modules/audio_output/sndio.c
index 46a1560..76479f0 100644
--- a/modules/audio_output/sndio.c
+++ b/modules/audio_output/sndio.c
@@ -233,7 +233,11 @@ static void Pause (audio_output_t *aout, bool pause, mtime_t date)
     if (pause)
         sio_stop (sys->hdl);
     else
+    {
+        sys->read_offset = 0;
+        sys->write_offset = 0;
         sio_start (sys->hdl);
+    }
     (void) date;
 }
 



More information about the vlc-commits mailing list