mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
rtmp: All read return values smaller than zero are failures
This commit is contained in:
parent
7f3252e90a
commit
af4c066bc3
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ gst_rtmp_src_create (GstPushSrc * pushsrc, GstBuffer ** buffer)
|
|||
break;
|
||||
}
|
||||
|
||||
if (G_UNLIKELY (read == -1))
|
||||
if (G_UNLIKELY (read < 0))
|
||||
goto read_failed;
|
||||
|
||||
if (read < todo) {
|
||||
|
|
Loading…
Reference in a new issue