splitmuxsink: do not access property variable without the object lock, use the local stack copy instead

This commit is contained in:
George Kiagiadakis 2015-04-15 11:07:27 +02:00
parent 1954726328
commit 97c03449a4

View file

@ -1295,7 +1295,7 @@ create_elements (GstSplitMuxSink * splitmux)
create_element (splitmux, "mp4mux", "muxer")) == NULL)
goto fail;
} else {
if (!gst_bin_add (GST_BIN (splitmux), splitmux->provided_muxer)) {
if (!gst_bin_add (GST_BIN (splitmux), provided_muxer)) {
g_warning ("Could not add muxer element - splitmuxsink will not work");
gst_object_unref (provided_muxer);
goto fail;