From 8e9029769862ac35e5a46592b0c4a139f23be5c4 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 16 Feb 2009 18:38:54 +0000 Subject: 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28614 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libao2/ao_oss.c') diff --git a/libao2/ao_oss.c b/libao2/ao_oss.c index 44f0c7d857..8e3f76285e 100644 --- a/libao2/ao_oss.c +++ b/libao2/ao_oss.c @@ -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); -- cgit v1.2.3