From cdc3b20ba96741f25ce331a44d3173f47ff9c8d0 Mon Sep 17 00:00:00 2001 From: Thijs Vermeir Date: Wed, 1 Jun 2011 10:19:31 +0200 Subject: [PATCH] udpsrc: allow skip-first-bytes of full buffer size --- gst/udp/gstudpsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 4363044..f3f47a8 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -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; -- 2.7.4