And gst_object_unref here too
authorJohan Dahlin <johan@gnome.org>
Tue, 15 Nov 2005 19:48:40 +0000 (19:48 +0000)
committerJohan Dahlin <johan@gnome.org>
Tue, 15 Nov 2005 19:48:40 +0000 (19:48 +0000)
Original commit message from CVS:
And gst_object_unref here too

gst/base/gstbasesrc.c
gst/elements/gsttypefindelement.c
gst/gstqueue.c
gst/gstregistryxml.c
libs/gst/base/gstbasesrc.c
plugins/elements/gstqueue.c
plugins/elements/gsttypefindelement.c

index 60f60a4..fb7c5ba 100644 (file)
@@ -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,
index 0a171f9..40ad383 100644 (file)
@@ -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));
index 1929026..ac0a6af 100644 (file)
@@ -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));
index c44a4f4..3f0f26d 100644 (file)
@@ -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) {
index 60f60a4..fb7c5ba 100644 (file)
@@ -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,
index 1929026..ac0a6af 100644 (file)
@@ -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));
index 0a171f9..40ad383 100644 (file)
@@ -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));