mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
matroskamux: _get_pad_template result needs no unref
This commit is contained in:
parent
ca0652a572
commit
973c8ddfdf
1 changed files with 0 additions and 1 deletions
|
@ -328,7 +328,6 @@ gst_matroska_mux_init (GstMatroskaMux * mux, GstMatroskaMuxClass * g_class)
|
||||||
templ =
|
templ =
|
||||||
gst_element_class_get_pad_template (GST_ELEMENT_CLASS (g_class), "src");
|
gst_element_class_get_pad_template (GST_ELEMENT_CLASS (g_class), "src");
|
||||||
mux->srcpad = gst_pad_new_from_template (templ, "src");
|
mux->srcpad = gst_pad_new_from_template (templ, "src");
|
||||||
g_object_unref (templ);
|
|
||||||
|
|
||||||
gst_pad_set_event_function (mux->srcpad, gst_matroska_mux_handle_src_event);
|
gst_pad_set_event_function (mux->srcpad, gst_matroska_mux_handle_src_event);
|
||||||
gst_element_add_pad (GST_ELEMENT (mux), mux->srcpad);
|
gst_element_add_pad (GST_ELEMENT (mux), mux->srcpad);
|
||||||
|
|
Loading…
Reference in a new issue