mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +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");
|
GST_DEBUG_OBJECT (basesrc, "creating src pad");
|
||||||
pad = gst_pad_new_from_template (pad_template, "src");
|
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_DEBUG_OBJECT (basesrc, "setting functions on src pad");
|
||||||
gst_pad_set_activatepush_function (pad,
|
gst_pad_set_activatepush_function (pad,
|
||||||
|
|
|
@ -209,7 +209,7 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
||||||
/* sinkpad */
|
/* sinkpad */
|
||||||
src_template = gst_static_pad_template_get (&type_find_element_sink_template);
|
src_template = gst_static_pad_template_get (&type_find_element_sink_template);
|
||||||
typefind->sink = gst_pad_new_from_template (src_template, "sink");
|
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_pad_set_activate_function (typefind->sink,
|
||||||
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
|
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
|
||||||
|
@ -222,7 +222,7 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
||||||
/* srcpad */
|
/* srcpad */
|
||||||
sink_template = gst_static_pad_template_get (&type_find_element_src_template);
|
sink_template = gst_static_pad_template_get (&type_find_element_src_template);
|
||||||
typefind->src = gst_pad_new_from_template (sink_template, "src");
|
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_pad_set_activatepull_function (typefind->src,
|
||||||
GST_DEBUG_FUNCPTR (gst_type_find_element_activate_src_pull));
|
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);
|
sink_template = gst_static_pad_template_get (&sinktemplate);
|
||||||
queue->sinkpad = gst_pad_new_from_template (sink_template, "sink");
|
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_pad_set_chain_function (queue->sinkpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_queue_chain));
|
GST_DEBUG_FUNCPTR (gst_queue_chain));
|
||||||
|
@ -353,7 +353,7 @@ gst_queue_init (GstQueue * queue)
|
||||||
|
|
||||||
src_template = gst_static_pad_template_get (&srctemplate);
|
src_template = gst_static_pad_template_get (&srctemplate);
|
||||||
queue->srcpad = gst_pad_new_from_template (src_template, "src");
|
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_pad_set_activatepush_function (queue->srcpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_queue_src_activate_push));
|
GST_DEBUG_FUNCPTR (gst_queue_src_activate_push));
|
||||||
|
|
|
@ -524,7 +524,7 @@ load_feature (xmlTextReaderPtr reader)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (!GST_IS_PLUGIN_FEATURE (feature)) {
|
if (!GST_IS_PLUGIN_FEATURE (feature)) {
|
||||||
g_object_unref (feature);
|
gst_object_unref (feature);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
while ((ret = xmlTextReaderRead (reader)) == 1) {
|
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");
|
GST_DEBUG_OBJECT (basesrc, "creating src pad");
|
||||||
pad = gst_pad_new_from_template (pad_template, "src");
|
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_DEBUG_OBJECT (basesrc, "setting functions on src pad");
|
||||||
gst_pad_set_activatepush_function (pad,
|
gst_pad_set_activatepush_function (pad,
|
||||||
|
|
|
@ -335,7 +335,7 @@ gst_queue_init (GstQueue * queue)
|
||||||
|
|
||||||
sink_template = gst_static_pad_template_get (&sinktemplate);
|
sink_template = gst_static_pad_template_get (&sinktemplate);
|
||||||
queue->sinkpad = gst_pad_new_from_template (sink_template, "sink");
|
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_pad_set_chain_function (queue->sinkpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_queue_chain));
|
GST_DEBUG_FUNCPTR (gst_queue_chain));
|
||||||
|
@ -353,7 +353,7 @@ gst_queue_init (GstQueue * queue)
|
||||||
|
|
||||||
src_template = gst_static_pad_template_get (&srctemplate);
|
src_template = gst_static_pad_template_get (&srctemplate);
|
||||||
queue->srcpad = gst_pad_new_from_template (src_template, "src");
|
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_pad_set_activatepush_function (queue->srcpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_queue_src_activate_push));
|
GST_DEBUG_FUNCPTR (gst_queue_src_activate_push));
|
||||||
|
|
|
@ -209,7 +209,7 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
||||||
/* sinkpad */
|
/* sinkpad */
|
||||||
src_template = gst_static_pad_template_get (&type_find_element_sink_template);
|
src_template = gst_static_pad_template_get (&type_find_element_sink_template);
|
||||||
typefind->sink = gst_pad_new_from_template (src_template, "sink");
|
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_pad_set_activate_function (typefind->sink,
|
||||||
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
|
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
|
||||||
|
@ -222,7 +222,7 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
||||||
/* srcpad */
|
/* srcpad */
|
||||||
sink_template = gst_static_pad_template_get (&type_find_element_src_template);
|
sink_template = gst_static_pad_template_get (&type_find_element_src_template);
|
||||||
typefind->src = gst_pad_new_from_template (sink_template, "src");
|
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_pad_set_activatepull_function (typefind->src,
|
||||||
GST_DEBUG_FUNCPTR (gst_type_find_element_activate_src_pull));
|
GST_DEBUG_FUNCPTR (gst_type_find_element_activate_src_pull));
|
||||||
|
|
Loading…
Reference in a new issue