Commit 3f4e4eda authored by Nicola Murino's avatar Nicola Murino Committed by Sebastian Dröge
Browse files

gst: Fix some query leaks

parent e23264d5
......@@ -140,10 +140,8 @@ gst_flv_mux_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_static_pad_template (element_class,
&videosink_templ);
gst_element_class_add_static_pad_template (element_class,
&audiosink_templ);
gst_element_class_add_static_pad_template (element_class, &videosink_templ);
gst_element_class_add_static_pad_template (element_class, &audiosink_templ);
gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_details_simple (element_class, "FLV muxer",
"Codec/Muxer",
......@@ -1127,6 +1125,7 @@ gst_flv_mux_write_header (GstFlvMux * mux)
/* FIXME 0.11: change to query not handled => seeking not supported */
GST_WARNING_OBJECT (mux, "downstream did not handle seeking query");
}
gst_query_unref (query);
}
header = gst_flv_mux_create_header (mux);
......
......@@ -1635,6 +1635,7 @@ gst_qt_mux_start_file (GstQTMux * qtmux)
/* FIXME 0.11: change to query not handled => seeking not supported */
GST_WARNING_OBJECT (qtmux, "downstream did not handle seeking query");
}
gst_query_unref (query);
}
/* let downstream know we think in BYTES and expect to do seeking later on */
......
......@@ -2376,6 +2376,7 @@ gst_matroska_mux_start (GstMatroskaMux * mux)
/* FIXME 0.11: change to query not handled => seeking not supported */
GST_WARNING_OBJECT (mux, "downstream did not handle seeking query");
}
gst_query_unref (query);
}
if (!strcmp (mux->doctype, GST_MATROSKA_DOCTYPE_WEBM)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment