mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 05:22:30 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_UNLIKELY (read == -1))
|
if (G_UNLIKELY (read < 0))
|
||||||
goto read_failed;
|
goto read_failed;
|
||||||
|
|
||||||
if (read < todo) {
|
if (read < todo) {
|
||||||
|
|
Loading…
Reference in a new issue