mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
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:
parent
e3847132b5
commit
8e90297698
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user