summaryrefslogtreecommitdiffstats
path: root/gst/udp/gstudpsrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/udp/gstudpsrc.c')
-rw-r--r--gst/udp/gstudpsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c
index 85ad7c68..f7be0fd0 100644
--- a/gst/udp/gstudpsrc.c
+++ b/gst/udp/gstudpsrc.c
@@ -328,7 +328,7 @@ gst_udpsrc_create (GstPushSrc * psrc, GstBuffer ** buf)
int res;
READ_COMMAND (udpsrc, command, res);
- if (res < 0) {
+ if (res <= 0) {
GST_LOG_OBJECT (udpsrc, "no more commands");
/* no more commands */
break;