]> git.sesse.net Git - vlc/blobdiff - src/audio_output/dec.c
aout: remove aout_DecIsEmpty()
[vlc] / src / audio_output / dec.c
index 74440728958b99b98bfa0e09b5e0cd51c1455be4..5e5eb99dd069b41d693b06c832aa450edb7b6e20 100644 (file)
@@ -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;
-}