[MPlayer-cvslog] r28614 - trunk/libao2/ao_oss.c

reimar subversion at mplayerhq.hu
Mon Feb 16 19:38:54 CET 2009


Author: reimar
Date: Mon Feb 16 19:38:54 2009
New Revision: 28614

Log:
100l, do 0-filling on resume (to avoid desync after pause) in ao_oss only when
the we output a PCM format, not for e.g. AC3.

Modified:
   trunk/libao2/ao_oss.c

Modified: trunk/libao2/ao_oss.c
==============================================================================
--- trunk/libao2/ao_oss.c	Mon Feb 16 18:05:58 2009	(r28613)
+++ trunk/libao2/ao_oss.c	Mon Feb 16 19:38:54 2009	(r28614)
@@ -479,7 +479,7 @@ static void audio_resume(void)
     int fillcnt;
     reset();
     fillcnt = get_space() - prepause_space;
-    if (fillcnt > 0) {
+    if (fillcnt > 0 && !(ao_data.format & AF_FORMAT_SPECIAL_MASK)) {
       void *silence = calloc(fillcnt, 1);
       play(silence, fillcnt, 0);
       free(silence);



More information about the MPlayer-cvslog mailing list