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
This commit is contained in:
reimar 2009-02-16 18:38:54 +00:00
parent e3847132b5
commit 8e90297698
1 changed files with 1 additions and 1 deletions

View File

@ -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);