udpsrc: allow skip-first-bytes of full buffer size
This commit is contained in:
parent
399fc9cd1c
commit
cdc3b20ba9
@ -533,7 +533,7 @@ no_select:
|
|||||||
|
|
||||||
/* patch pktdata and len when stripping off the headers */
|
/* patch pktdata and len when stripping off the headers */
|
||||||
if (G_UNLIKELY (udpsrc->skip_first_bytes != 0)) {
|
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;
|
goto skip_error;
|
||||||
|
|
||||||
pktdata += udpsrc->skip_first_bytes;
|
pktdata += udpsrc->skip_first_bytes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user