mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gst: Fix some query leaks
This commit is contained in:
parent
e23264d570
commit
3f4e4edaa2
3 changed files with 5 additions and 4 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue