diff --git a/ext/rtmp/gstrtmpsrc.c b/ext/rtmp/gstrtmpsrc.c index b9c0027bce..74aae6e16c 100644 --- a/ext/rtmp/gstrtmpsrc.c +++ b/ext/rtmp/gstrtmpsrc.c @@ -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) {