diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index 85f0ec89a7..bcea8ca077 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,