From af4c066bc3d00ebeab9f13a72096d7b2d3b3e2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 23 Jun 2010 22:18:53 +0200 Subject: [PATCH] rtmp: All read return values smaller than zero are failures --- ext/rtmp/gstrtmpsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {