mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
rtpvorbispay: Don't leak config data when receiving a second CAPS event
This commit is contained in:
parent
d87f6cf483
commit
967280df42
1 changed files with 2 additions and 0 deletions
|
@ -500,6 +500,8 @@ gst_rtp_vorbis_pay_finish_headers (GstRTPBasePayload * basepayload)
|
|||
configuration = g_base64_encode (config, configlen);
|
||||
|
||||
/* store for later re-sending */
|
||||
if (rtpvorbispay->config_data)
|
||||
g_free (rtpvorbispay->config_data);
|
||||
rtpvorbispay->config_size = configlen - 4 - 3 - 2;
|
||||
rtpvorbispay->config_data = g_malloc (rtpvorbispay->config_size);
|
||||
rtpvorbispay->config_extra_len = extralen;
|
||||
|
|
Loading…
Reference in a new issue