ffmpeg: use decoder_read() wrapper instead of direct input_stream_read()

decoder_read() checks the decoder command.  Without this patch, the
ffmpeg plugin could become unresponsive.
This commit is contained in:
Max Kellermann 2008-11-02 17:06:53 +01:00
parent 4d069b4991
commit 0f80428fda

View File

@ -86,7 +86,8 @@ static int mpdurl_read(URLContext *h, unsigned char *buf, int size)
FopsHelper *base = (FopsHelper *) h->priv_data;
while (true) {
size_t ret = input_stream_read(base->input, (void *)buf, size);
size_t ret = decoder_read(base->decoder, base->input,
(void *)buf, size);
if (ret > 0)
return ret;