summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-16 18:38:54 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-16 18:38:54 +0000
commit8e9029769862ac35e5a46592b0c4a139f23be5c4 (patch)
treeab61cb00161afa77b9189c7951f349d835bf452e /libao2
parente3847132b5680a910982b4274a674c7e97796cfd (diff)
downloadmpv-8e9029769862ac35e5a46592b0c4a139f23be5c4.tar.bz2
mpv-8e9029769862ac35e5a46592b0c4a139f23be5c4.tar.xz
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
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_oss.c2
1 files changed, 1 insertions, 1 deletions
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);