mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
avdemux: Never return 0 from read function
Instead return AVERROR_EOF. The read function must never ever return 0 according to the documentation, and in practice this leads to infinite loops. Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3369 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7496>
This commit is contained in:
parent
b789d53b22
commit
6ca6b8c553
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ gst_ffmpeg_pipe_read (void *priv_data, uint8_t * buf, int size)
|
|||
}
|
||||
GST_FFMPEG_PIPE_MUTEX_UNLOCK (ffpipe);
|
||||
|
||||
return size;
|
||||
return size > 0 ? size : AVERROR_EOF;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue