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.
This commit is contained in:
Xabier Rodriguez Calvar 2019-03-18 15:23:07 +01:00
parent 2e3022c553
commit 7c136bbb5e

View file

@ -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,