mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
udpsrc: allow skip-first-bytes of full buffer size
This commit is contained in:
parent
399fc9cd1c
commit
cdc3b20ba9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue