mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
And gst_object_unref here too
Original commit message from CVS: And gst_object_unref here too
This commit is contained in:
parent
ba68a823c9
commit
8a9bd6aac8
7 changed files with 11 additions and 11 deletions
|
@ -195,7 +195,7 @@ gst_base_src_init (GstBaseSrc * basesrc, gpointer g_class)
|
|||
|
||||
GST_DEBUG_OBJECT (basesrc, "creating src pad");
|
||||
pad = gst_pad_new_from_template (pad_template, "src");
|
||||
g_object_unref (pad_template);
|
||||
gst_object_unref (pad_template);
|
||||
|
||||
GST_DEBUG_OBJECT (basesrc, "setting functions on src pad");
|
||||
gst_pad_set_activatepush_function (pad,
|
||||
|
|
|
@ -209,7 +209,7 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
|||
/* sinkpad */
|
||||
src_template = gst_static_pad_template_get (&type_find_element_sink_template);
|
||||
typefind->sink = gst_pad_new_from_template (src_template, "sink");
|
||||
g_object_unref (src_template);
|
||||
gst_object_unref (src_template);
|
||||
|
||||
gst_pad_set_activate_function (typefind->sink,
|
||||
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
|
||||
|
@ -222,7 +222,7 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
|||
/* srcpad */
|
||||
sink_template = gst_static_pad_template_get (&type_find_element_src_template);
|
||||
typefind->src = gst_pad_new_from_template (sink_template, "src");
|
||||
g_object_unref (sink_template);
|
||||
gst_object_unref (sink_template);
|
||||
|
||||
gst_pad_set_activatepull_function (typefind->src,
|
||||
GST_DEBUG_FUNCPTR (gst_type_find_element_activate_src_pull));
|
||||
|
|
|
@ -335,7 +335,7 @@ gst_queue_init (GstQueue * queue)
|
|||
|
||||
sink_template = gst_static_pad_template_get (&sinktemplate);
|
||||
queue->sinkpad = gst_pad_new_from_template (sink_template, "sink");
|
||||
g_object_unref (sink_template);
|
||||
gst_object_unref (sink_template);
|
||||
|
||||
gst_pad_set_chain_function (queue->sinkpad,
|
||||
GST_DEBUG_FUNCPTR (gst_queue_chain));
|
||||
|
@ -353,7 +353,7 @@ gst_queue_init (GstQueue * queue)
|
|||
|
||||
src_template = gst_static_pad_template_get (&srctemplate);
|
||||
queue->srcpad = gst_pad_new_from_template (src_template, "src");
|
||||
g_object_unref (src_template);
|
||||
gst_object_unref (src_template);
|
||||
|
||||
gst_pad_set_activatepush_function (queue->srcpad,
|
||||
GST_DEBUG_FUNCPTR (gst_queue_src_activate_push));
|
||||
|
|
|
@ -524,7 +524,7 @@ load_feature (xmlTextReaderPtr reader)
|
|||
return NULL;
|
||||
}
|
||||
if (!GST_IS_PLUGIN_FEATURE (feature)) {
|
||||
g_object_unref (feature);
|
||||
gst_object_unref (feature);
|
||||
return NULL;
|
||||
}
|
||||
while ((ret = xmlTextReaderRead (reader)) == 1) {
|
||||
|
|
|
@ -195,7 +195,7 @@ gst_base_src_init (GstBaseSrc * basesrc, gpointer g_class)
|
|||
|
||||
GST_DEBUG_OBJECT (basesrc, "creating src pad");
|
||||
pad = gst_pad_new_from_template (pad_template, "src");
|
||||
g_object_unref (pad_template);
|
||||
gst_object_unref (pad_template);
|
||||
|
||||
GST_DEBUG_OBJECT (basesrc, "setting functions on src pad");
|
||||
gst_pad_set_activatepush_function (pad,
|
||||
|
|
|
@ -335,7 +335,7 @@ gst_queue_init (GstQueue * queue)
|
|||
|
||||
sink_template = gst_static_pad_template_get (&sinktemplate);
|
||||
queue->sinkpad = gst_pad_new_from_template (sink_template, "sink");
|
||||
g_object_unref (sink_template);
|
||||
gst_object_unref (sink_template);
|
||||
|
||||
gst_pad_set_chain_function (queue->sinkpad,
|
||||
GST_DEBUG_FUNCPTR (gst_queue_chain));
|
||||
|
@ -353,7 +353,7 @@ gst_queue_init (GstQueue * queue)
|
|||
|
||||
src_template = gst_static_pad_template_get (&srctemplate);
|
||||
queue->srcpad = gst_pad_new_from_template (src_template, "src");
|
||||
g_object_unref (src_template);
|
||||
gst_object_unref (src_template);
|
||||
|
||||
gst_pad_set_activatepush_function (queue->srcpad,
|
||||
GST_DEBUG_FUNCPTR (gst_queue_src_activate_push));
|
||||
|
|
|
@ -209,7 +209,7 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
|||
/* sinkpad */
|
||||
src_template = gst_static_pad_template_get (&type_find_element_sink_template);
|
||||
typefind->sink = gst_pad_new_from_template (src_template, "sink");
|
||||
g_object_unref (src_template);
|
||||
gst_object_unref (src_template);
|
||||
|
||||
gst_pad_set_activate_function (typefind->sink,
|
||||
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
|
||||
|
@ -222,7 +222,7 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
|||
/* srcpad */
|
||||
sink_template = gst_static_pad_template_get (&type_find_element_src_template);
|
||||
typefind->src = gst_pad_new_from_template (sink_template, "src");
|
||||
g_object_unref (sink_template);
|
||||
gst_object_unref (sink_template);
|
||||
|
||||
gst_pad_set_activatepull_function (typefind->src,
|
||||
GST_DEBUG_FUNCPTR (gst_type_find_element_activate_src_pull));
|
||||
|
|
Loading…
Reference in a new issue