udpsrc: allow skip-first-bytes of full buffer size
authorThijs Vermeir <thijsvermeir@gmail.com>
Wed, 1 Jun 2011 08:19:31 +0000 (10:19 +0200)
committerThijs Vermeir <thijsvermeir@gmail.com>
Wed, 1 Jun 2011 08:19:31 +0000 (10:19 +0200)
gst/udp/gstudpsrc.c

index 4363044da201292b6933fbe4f27f1f958a89aa79..f3f47a85272c1bf12645a4dd7ecf7e9441393dfd 100644 (file)
@@ -533,7 +533,7 @@ no_select:
 
   /* patch pktdata and len when stripping off the headers */
   if (G_UNLIKELY (udpsrc->skip_first_bytes != 0)) {
-    if (G_UNLIKELY (readsize <= udpsrc->skip_first_bytes))
+    if (G_UNLIKELY (readsize < udpsrc->skip_first_bytes))
       goto skip_error;
 
     pktdata += udpsrc->skip_first_bytes;