summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorXabier Rodriguez Calvar <calvaris@igalia.com>2019-03-18 15:23:07 +0100
committerXabier Rodriguez Calvar <calvaris@igalia.com>2019-03-18 15:23:07 +0100
commit7c136bbb5ee34dfc1a0b003f5db351f1986106a0 (patch)
tree8e46e435fefcd458c0b174e2954839580b20d507 /ext
parent2e3022c5530492588073899a75d1bbbb452e55a9 (diff)
downloadgstreamer-plugins-bad-7c136bbb5ee34dfc1a0b003f5db351f1986106a0.tar.gz
mssdemux: fix protection data double free
For not being duplicated here it was being freed when the manifest was being destroyed and a second time when the buffer was being destroyed.
Diffstat (limited to 'ext')
-rw-r--r--ext/smoothstreaming/gstmssdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c
index 85f0ec89a..bcea8ca07 100644
--- a/ext/smoothstreaming/gstmssdemux.c
+++ b/ext/smoothstreaming/gstmssdemux.c
@@ -489,7 +489,7 @@ gst_mss_demux_setup_streams (GstAdaptiveDemux * demux)
if (protected) {
GstBuffer *protection_buffer =
- gst_buffer_new_wrapped ((gpointer) protection_data,
+ gst_buffer_new_wrapped (g_strdup (protection_data),
strlen (protection_data));
GstEvent *event =
gst_event_new_protection (protection_system_id, protection_buffer,