--- gst-plugins-good-org/gst/udp/gstudpsrc.c	2006-09-28 12:48:54.000000000 -0400
+++ gst-plugins-good/gst/udp/gstudpsrc.c	2006-09-28 12:50:40.000000000 -0400
@@ -328,7 +328,7 @@
           int res;
 
           READ_COMMAND (udpsrc, command, res);
-          if (res < 0) {
+          if (res <= 0) {
             GST_LOG_OBJECT (udpsrc, "no more commands");
             /* no more commands */
             break;
