gst: Fix some query leaks

This commit is contained in:
Nicola Murino 2012-03-12 08:48:32 +01:00 committed by Sebastian Dröge
parent e23264d570
commit 3f4e4edaa2
3 changed files with 5 additions and 4 deletions

View file

@ -140,10 +140,8 @@ gst_flv_mux_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_static_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &videosink_templ);
&videosink_templ); gst_element_class_add_static_pad_template (element_class, &audiosink_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_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_details_simple (element_class, "FLV muxer", gst_element_class_set_details_simple (element_class, "FLV muxer",
"Codec/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 */ /* FIXME 0.11: change to query not handled => seeking not supported */
GST_WARNING_OBJECT (mux, "downstream did not handle seeking query"); GST_WARNING_OBJECT (mux, "downstream did not handle seeking query");
} }
gst_query_unref (query);
} }
header = gst_flv_mux_create_header (mux); header = gst_flv_mux_create_header (mux);

View file

@ -1635,6 +1635,7 @@ gst_qt_mux_start_file (GstQTMux * qtmux)
/* FIXME 0.11: change to query not handled => seeking not supported */ /* FIXME 0.11: change to query not handled => seeking not supported */
GST_WARNING_OBJECT (qtmux, "downstream did not handle seeking query"); 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 */ /* let downstream know we think in BYTES and expect to do seeking later on */

View file

@ -2376,6 +2376,7 @@ gst_matroska_mux_start (GstMatroskaMux * mux)
/* FIXME 0.11: change to query not handled => seeking not supported */ /* FIXME 0.11: change to query not handled => seeking not supported */
GST_WARNING_OBJECT (mux, "downstream did not handle seeking query"); GST_WARNING_OBJECT (mux, "downstream did not handle seeking query");
} }
gst_query_unref (query);
} }
if (!strcmp (mux->doctype, GST_MATROSKA_DOCTYPE_WEBM)) { if (!strcmp (mux->doctype, GST_MATROSKA_DOCTYPE_WEBM)) {