rtmp: All read return values smaller than zero are failures

This commit is contained in:
Sebastian Dröge 2010-06-23 22:18:53 +02:00
parent 7f3252e90a
commit af4c066bc3

View file

@ -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) {