Mercurial > mplayer.hg
changeset 28579:0405513156d1
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.
author | reimar |
---|---|
date | Mon, 16 Feb 2009 18:38:54 +0000 |
parents | 8c9ed8e6fc99 |
children | 61e9c93193bc |
files | libao2/ao_oss.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_oss.c Mon Feb 16 17:05:58 2009 +0000 +++ b/libao2/ao_oss.c Mon Feb 16 18:38:54 2009 +0000 @@ -479,7 +479,7 @@ 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);