summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-24 15:25:36 +0200
committerwm4 <wm4@nowhere>2014-07-24 15:25:36 +0200
commit6455bcc1da7e873f1532b23806a1be63aa9bd7f5 (patch)
tree68a1f9712b24e4c8445291ea8a8448ee467f46e6
parentcb4aa2df92fca66c309d108e1e1057c1b7043606 (diff)
downloadmpv-6455bcc1da7e873f1532b23806a1be63aa9bd7f5.tar.bz2
mpv-6455bcc1da7e873f1532b23806a1be63aa9bd7f5.tar.xz
audio: remove unnecessary code
It's true that the decoder can successfully decode, but return no data (for various reasons). We don't need to handle this specially, though. We just let the decoder decode some more data. This doesn't increase the danger of an endless loop either, because audio_decode() already calls this function until enough is decoded.
-rw-r--r--audio/decode/dec_audio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/audio/decode/dec_audio.c b/audio/decode/dec_audio.c
index c2857353fa..5abb13f1f4 100644
--- a/audio/decode/dec_audio.c
+++ b/audio/decode/dec_audio.c
@@ -267,9 +267,6 @@ static int filter_n_bytes(struct dec_audio *da, struct mp_audio_buffer *outbuf,
error = da->ad_driver->decode_packet(da);
if (error < 0)
break;
- // No progress means the decoder is buffering input data.
- if (!da->decoded.samples)
- break;
}
// Filter