X-Git-Url: https://git.sesse.net/?p=vlc;a=blobdiff_plain;f=src%2Faudio_output%2Fdec.c;h=5e5eb99dd069b41d693b06c832aa450edb7b6e20;hp=74440728958b99b98bfa0e09b5e0cd51c1455be4;hb=a308b7a17466bb91908a518c93b36dacb49212e7;hpb=557eaa06dc5babd74d766b8894086cdcb1a33c44 diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c index 7444072895..5e5eb99dd0 100644 --- a/src/audio_output/dec.c +++ b/src/audio_output/dec.c @@ -421,21 +421,3 @@ void aout_DecFlush (audio_output_t *aout, bool wait) aout_OutputFlush (aout, wait); aout_OutputUnlock (aout); } - -bool aout_DecIsEmpty (audio_output_t *aout) -{ - aout_owner_t *owner = aout_owner (aout); - mtime_t now = mdate (); - bool empty = true; - - aout_OutputLock (aout); - if (owner->sync.end != VLC_TS_INVALID) - empty = owner->sync.end <= now; - if (empty && owner->mixer_format.i_format) - /* The last PTS has elapsed already. So the underlying audio output - * buffer should be empty or almost. Thus draining should be fast - * and will not block the caller too long. */ - aout_OutputFlush (aout, true); - aout_OutputUnlock (aout); - return empty; -}