udpsrc: allow skip-first-bytes of full buffer size

This commit is contained in:
Thijs Vermeir 2011-06-01 10:19:31 +02:00
parent 399fc9cd1c
commit cdc3b20ba9

View 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;