mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
rtpjitterbuffer: Fix invalid memory access in rtp_jitter_buffer_pop()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1973>
This commit is contained in:
parent
8cb5d9f49e
commit
7691c6776a
1 changed files with 2 additions and 1 deletions
|
@ -1309,6 +1309,7 @@ rtp_jitter_buffer_pop (RTPJitterBuffer * jbuf, gint * percent)
|
|||
|
||||
/* let's clear the pointers so we can ensure we don't free items that are
|
||||
* still in the jitterbuffer */
|
||||
if (item)
|
||||
item->next = item->prev = NULL;
|
||||
|
||||
return (RTPJitterBufferItem *) item;
|
||||
|
|
Loading…
Reference in a new issue