summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXabier Rodriguez Calvar <calvaris@igalia.com>2019-03-18 15:23:07 +0100
committerTim-Philipp Müller <tim@centricular.com>2019-05-02 11:00:24 +0100
commit2a539425d5108fd62c2332f67d1cb66c162bd3e1 (patch)
tree1a8ed3880248c7d6cbc5ea57da7fdeb1fe47b7eb
parent4152554364db0692160e5e11ea899a0e6ec3b4de (diff)
downloadgstreamer-plugins-bad-2a539425d5108fd62c2332f67d1cb66c162bd3e1.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.
-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,