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:
parent
4d069b4991
commit
0f80428fda
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user