projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d87f6cf
)
rtpvorbispay: Don't leak config data when receiving a second CAPS event
author
Sebastian Dröge
<sebastian@centricular.com>
Wed, 4 Dec 2013 20:54:16 +0000
(21:54 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 4 Dec 2013 20:58:29 +0000
(21:58 +0100)
gst/rtp/gstrtpvorbispay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtpvorbispay.c
b/gst/rtp/gstrtpvorbispay.c
index
7272e12
..
93190b4
100644
(file)
--- a/
gst/rtp/gstrtpvorbispay.c
+++ b/
gst/rtp/gstrtpvorbispay.c
@@
-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;