mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +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 */
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue