mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +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/7390>
This commit is contained in:
parent
1b5f026119
commit
7daa040d24
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ gst_ffmpeg_pipe_read (void *priv_data, uint8_t * buf, int size)
|
||||||
}
|
}
|
||||||
GST_FFMPEG_PIPE_MUTEX_UNLOCK (ffpipe);
|
GST_FFMPEG_PIPE_MUTEX_UNLOCK (ffpipe);
|
||||||
|
|
||||||
return size;
|
return size > 0 ? size : AVERROR_EOF;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue