revert unrefs, they don't pass make check
authorThomas Vander Stichele <thomas@apestaart.org>
Wed, 16 Nov 2005 00:11:36 +0000 (00:11 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Wed, 16 Nov 2005 00:11:36 +0000 (00:11 +0000)
Original commit message from CVS:
revert unrefs, they don't pass make check

ChangeLog
ext/ogg/gstoggdemux.c
ext/vorbis/vorbisdec.c

index 2517ad8..16fa313 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-11-16  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * ext/ogg/gstoggdemux.c: (gst_ogg_pad_typefind),
+       (gst_ogg_demux_init):
+       * ext/vorbis/vorbisdec.c: (gst_vorbis_dec_base_init),
+       (gst_vorbis_dec_init):
+         revert unrefs, they don't pass make check
+
 2005-11-15  Johan Dahlin  <johan@gnome.org>
 
        * ext/ogg/gstoggdemux.c: (gst_ogg_pad_typefind),
index cd5ebc9..78dd2ac 100644 (file)
@@ -648,7 +648,6 @@ gst_ogg_pad_typefind (GstOggPad * pad, ogg_packet * packet)
         gst_element_set_state (element, GST_STATE_PAUSED);
         template = gst_static_pad_template_get (&internaltemplate);
         pad->elem_out = gst_pad_new_from_template (template, "internal");
-        gst_object_unref (template);
         gst_pad_set_chain_function (pad->elem_out, gst_ogg_pad_internal_chain);
         gst_pad_set_element_private (pad->elem_out, pad);
         gst_pad_set_active (pad->elem_out, TRUE);
@@ -1136,7 +1135,6 @@ gst_ogg_demux_init (GstOggDemux * ogg, GstOggDemuxClass * g_class)
   GstPadTemplate *template = gst_static_pad_template_get
       (&ogg_demux_sink_template_factory);
   ogg->sinkpad = gst_pad_new_from_template (template, "sink");
-  gst_object_unref (template);
 
   gst_pad_set_event_function (ogg->sinkpad, gst_ogg_demux_handle_event);
   gst_pad_set_chain_function (ogg->sinkpad, gst_ogg_demux_chain);
index cfb6f26..feccc02 100644 (file)
@@ -99,11 +99,9 @@ gst_vorbis_dec_base_init (gpointer g_class)
 
   src_template = gst_static_pad_template_get (&vorbis_dec_src_factory);
   gst_element_class_add_pad_template (element_class, src_template);
-  gst_object_unref (src_template);
 
   sink_template = gst_static_pad_template_get (&vorbis_dec_sink_factory);
   gst_element_class_add_pad_template (element_class, sink_template);
-  gst_object_unref (sink_template);
 
   gst_element_class_set_details (element_class, &vorbis_dec_details);
 }
@@ -171,7 +169,6 @@ gst_vorbis_dec_init (GstVorbisDec * dec, GstVorbisDecClass * g_class)
 
   template = gst_static_pad_template_get (&vorbis_dec_sink_factory);
   dec->sinkpad = gst_pad_new_from_template (template, "sink");
-  gst_object_unref (template);
 
   gst_pad_set_event_function (dec->sinkpad, vorbis_dec_sink_event);
   gst_pad_set_chain_function (dec->sinkpad, vorbis_dec_chain);
@@ -180,7 +177,6 @@ gst_vorbis_dec_init (GstVorbisDec * dec, GstVorbisDecClass * g_class)
 
   template = gst_static_pad_template_get (&vorbis_dec_src_factory);
   dec->srcpad = gst_pad_new_from_template (template, "src");
-  gst_object_unref (template);
 
   gst_pad_set_event_function (dec->srcpad, vorbis_dec_src_event);
   gst_pad_set_query_type_function (dec->srcpad, vorbis_get_query_types);