Fix #337365 (g_type_class_ref <-> g_type_class_peek_parent)
authorStefan Kost <ensonic@users.sourceforge.net>
Sat, 8 Apr 2006 21:21:45 +0000 (21:21 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Sat, 8 Apr 2006 21:21:45 +0000 (21:21 +0000)
Original commit message from CVS:
* ext/aalib/gstaasink.c: (gst_aasink_class_init):
* ext/esd/esdsink.c: (gst_esdsink_class_init):
* ext/flac/gstflactag.c: (gst_flac_tag_class_init):
* ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_class_init):
* ext/jpeg/gstjpegenc.c: (gst_jpegenc_class_init):
* ext/jpeg/gstsmokedec.c: (gst_smokedec_class_init):
* ext/jpeg/gstsmokeenc.c: (gst_smokeenc_class_init):
* ext/libcaca/gstcacasink.c: (gst_cacasink_class_init):
* ext/libmng/gstmngdec.c: (gst_mngdec_class_init):
* ext/libmng/gstmngenc.c: (gst_mngenc_class_init):
* ext/libpng/gstpngdec.c: (gst_pngdec_class_init):
* ext/libpng/gstpngenc.c: (gst_pngenc_class_init):
* ext/mikmod/gstmikmod.c: (gst_mikmod_class_init):
* ext/shout2/gstshout2.c: (gst_shout2send_class_init):
* ext/speex/gstspeexenc.c: (gst_speexenc_class_init):
* gst/alpha/gstalpha.c: (gst_alpha_class_init):
* gst/avi/gstavimux.c: (gst_avimux_class_init):
* gst/debug/efence.c: (gst_efence_class_init):
* gst/debug/negotiation.c: (gst_negotiation_class_init):
* gst/flx/gstflxdec.c: (gst_flxdec_class_init):
* gst/goom/gstgoom.c: (gst_goom_class_init):
* gst/id3demux/gstid3demux.c: (gst_id3demux_class_init):
* gst/interleave/deinterleave.c: (deinterleave_class_init):
* gst/interleave/interleave.c: (interleave_class_init):
* gst/law/alaw-decode.c: (gst_alawdec_class_init):
* gst/law/alaw-encode.c: (gst_alawenc_class_init):
* gst/law/mulaw-encode.c: (gst_mulawenc_class_init):
* gst/median/gstmedian.c: (gst_median_class_init):
* gst/monoscope/gstmonoscope.c: (gst_monoscope_class_init):
* gst/multipart/multipartmux.c: (gst_multipart_mux_class_init):
* gst/rtp/gstasteriskh263.c: (gst_asteriskh263_class_init):
* gst/rtp/gstrtpL16depay.c: (gst_rtp_L16depay_class_init):
* gst/rtp/gstrtpL16pay.c: (gst_rtpL16pay_class_init):
* gst/rtp/gstrtpamrdepay.c: (gst_rtp_amr_depay_class_init):
* gst/rtp/gstrtpamrpay.c: (gst_rtp_amr_pay_class_init):
* gst/rtp/gstrtpdepay.c: (gst_rtp_depay_class_init):
* gst/rtp/gstrtpgsmdepay.c: (gst_rtp_gsm_depay_class_init):
* gst/rtp/gstrtpgsmpay.c: (gst_rtp_gsm_pay_class_init):
* gst/rtp/gstrtph263pay.c: (gst_rtp_h263_pay_class_init):
* gst/rtp/gstrtph263pdepay.c: (gst_rtp_h263p_depay_class_init):
* gst/rtp/gstrtph263ppay.c: (gst_rtp_h263p_pay_class_init):
* gst/rtp/gstrtpmp4gpay.c: (gst_rtp_mp4g_pay_class_init):
* gst/rtp/gstrtpmp4vdepay.c: (gst_rtp_mp4v_depay_class_init):
* gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_class_init):
* gst/rtp/gstrtpmpadepay.c: (gst_rtp_mpa_depay_class_init):
* gst/rtp/gstrtpmpapay.c: (gst_rtp_mpa_pay_class_init):
* gst/rtp/gstrtppcmadepay.c: (gst_rtp_pcma_depay_class_init):
* gst/rtp/gstrtppcmapay.c: (gst_rtp_pcma_pay_class_init):
* gst/rtp/gstrtppcmudepay.c: (gst_rtp_pcmu_depay_class_init):
* gst/rtp/gstrtppcmupay.c: (gst_rtp_pcmu_pay_class_init):
* gst/rtp/gstrtpspeexdepay.c: (gst_rtp_speex_depay_class_init):
* gst/rtp/gstrtpspeexpay.c: (gst_rtp_speex_pay_class_init):
* gst/rtsp/gstrtpdec.c: (gst_rtpdec_class_init):
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_class_init):
* gst/smpte/gstsmpte.c: (gst_smpte_class_init):
* gst/udp/gstdynudpsink.c: (gst_dynudpsink_class_init):
* gst/udp/gstmultiudpsink.c: (gst_multiudpsink_class_init):
* gst/udp/gstudpsink.c: (gst_udpsink_class_init):
* gst/videomixer/videomixer.c: (gst_videomixer_class_init):
* gst/wavenc/gstwavenc.c: (gst_wavenc_class_init):
* sys/oss/gstossdmabuffer.c: (gst_ossdmabuffer_class_init):
* sys/oss/gstosssink.c: (gst_oss_sink_class_init):
* sys/osxaudio/gstosxaudioelement.c:
(gst_osxaudioelement_class_init):
* sys/osxaudio/gstosxaudiosink.c: (gst_osxaudiosink_class_init):
* sys/osxaudio/gstosxaudiosrc.c: (gst_osxaudiosrc_class_init):
* sys/sunaudio/gstsunaudiosink.c: (gst_sunaudiosink_class_init):
Fix #337365 (g_type_class_ref <-> g_type_class_peek_parent)

65 files changed:
ChangeLog
ext/aalib/gstaasink.c
ext/esd/esdsink.c
ext/flac/gstflactag.c
ext/gdk_pixbuf/gstgdkpixbuf.c
ext/jpeg/gstjpegenc.c
ext/jpeg/gstsmokedec.c
ext/jpeg/gstsmokeenc.c
ext/libcaca/gstcacasink.c
ext/libmng/gstmngdec.c
ext/libmng/gstmngenc.c
ext/libpng/gstpngdec.c
ext/libpng/gstpngenc.c
ext/mikmod/gstmikmod.c
ext/shout2/gstshout2.c
ext/speex/gstspeexenc.c
gst/alpha/gstalpha.c
gst/avi/gstavimux.c
gst/debug/efence.c
gst/debug/negotiation.c
gst/flx/gstflxdec.c
gst/goom/gstgoom.c
gst/id3demux/gstid3demux.c
gst/law/alaw-decode.c
gst/law/alaw-encode.c
gst/law/mulaw-encode.c
gst/median/gstmedian.c
gst/monoscope/gstmonoscope.c
gst/multipart/multipartmux.c
gst/rtp/gstasteriskh263.c
gst/rtp/gstrtpL16depay.c
gst/rtp/gstrtpL16pay.c
gst/rtp/gstrtpamrdepay.c
gst/rtp/gstrtpamrpay.c
gst/rtp/gstrtpdepay.c
gst/rtp/gstrtpgsmdepay.c
gst/rtp/gstrtpgsmpay.c
gst/rtp/gstrtph263pay.c
gst/rtp/gstrtph263pdepay.c
gst/rtp/gstrtph263ppay.c
gst/rtp/gstrtpmp4gpay.c
gst/rtp/gstrtpmp4vdepay.c
gst/rtp/gstrtpmp4vpay.c
gst/rtp/gstrtpmpadepay.c
gst/rtp/gstrtpmpapay.c
gst/rtp/gstrtppcmadepay.c
gst/rtp/gstrtppcmapay.c
gst/rtp/gstrtppcmudepay.c
gst/rtp/gstrtppcmupay.c
gst/rtp/gstrtpspeexdepay.c
gst/rtp/gstrtpspeexpay.c
gst/rtsp/gstrtpdec.c
gst/rtsp/gstrtspsrc.c
gst/smpte/gstsmpte.c
gst/udp/gstdynudpsink.c
gst/udp/gstmultiudpsink.c
gst/udp/gstudpsink.c
gst/videomixer/videomixer.c
gst/wavenc/gstwavenc.c
sys/oss/gstossdmabuffer.c
sys/oss/gstosssink.c
sys/osxaudio/gstosxaudioelement.c
sys/osxaudio/gstosxaudiosink.c
sys/osxaudio/gstosxaudiosrc.c
sys/sunaudio/gstsunaudiosink.c

index 258a5f4..30c6714 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,76 @@
 2006-04-08  Stefan Kost  <ensonic@users.sf.net>
 
+       * ext/aalib/gstaasink.c: (gst_aasink_class_init):
+       * ext/esd/esdsink.c: (gst_esdsink_class_init):
+       * ext/flac/gstflactag.c: (gst_flac_tag_class_init):
+       * ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_class_init):
+       * ext/jpeg/gstjpegenc.c: (gst_jpegenc_class_init):
+       * ext/jpeg/gstsmokedec.c: (gst_smokedec_class_init):
+       * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_class_init):
+       * ext/libcaca/gstcacasink.c: (gst_cacasink_class_init):
+       * ext/libmng/gstmngdec.c: (gst_mngdec_class_init):
+       * ext/libmng/gstmngenc.c: (gst_mngenc_class_init):
+       * ext/libpng/gstpngdec.c: (gst_pngdec_class_init):
+       * ext/libpng/gstpngenc.c: (gst_pngenc_class_init):
+       * ext/mikmod/gstmikmod.c: (gst_mikmod_class_init):
+       * ext/shout2/gstshout2.c: (gst_shout2send_class_init):
+       * ext/speex/gstspeexenc.c: (gst_speexenc_class_init):
+       * gst/alpha/gstalpha.c: (gst_alpha_class_init):
+       * gst/avi/gstavimux.c: (gst_avimux_class_init):
+       * gst/debug/efence.c: (gst_efence_class_init):
+       * gst/debug/negotiation.c: (gst_negotiation_class_init):
+       * gst/flx/gstflxdec.c: (gst_flxdec_class_init):
+       * gst/goom/gstgoom.c: (gst_goom_class_init):
+       * gst/id3demux/gstid3demux.c: (gst_id3demux_class_init):
+       * gst/interleave/deinterleave.c: (deinterleave_class_init):
+       * gst/interleave/interleave.c: (interleave_class_init):
+       * gst/law/alaw-decode.c: (gst_alawdec_class_init):
+       * gst/law/alaw-encode.c: (gst_alawenc_class_init):
+       * gst/law/mulaw-encode.c: (gst_mulawenc_class_init):
+       * gst/median/gstmedian.c: (gst_median_class_init):
+       * gst/monoscope/gstmonoscope.c: (gst_monoscope_class_init):
+       * gst/multipart/multipartmux.c: (gst_multipart_mux_class_init):
+       * gst/rtp/gstasteriskh263.c: (gst_asteriskh263_class_init):
+       * gst/rtp/gstrtpL16depay.c: (gst_rtp_L16depay_class_init):
+       * gst/rtp/gstrtpL16pay.c: (gst_rtpL16pay_class_init):
+       * gst/rtp/gstrtpamrdepay.c: (gst_rtp_amr_depay_class_init):
+       * gst/rtp/gstrtpamrpay.c: (gst_rtp_amr_pay_class_init):
+       * gst/rtp/gstrtpdepay.c: (gst_rtp_depay_class_init):
+       * gst/rtp/gstrtpgsmdepay.c: (gst_rtp_gsm_depay_class_init):
+       * gst/rtp/gstrtpgsmpay.c: (gst_rtp_gsm_pay_class_init):
+       * gst/rtp/gstrtph263pay.c: (gst_rtp_h263_pay_class_init):
+       * gst/rtp/gstrtph263pdepay.c: (gst_rtp_h263p_depay_class_init):
+       * gst/rtp/gstrtph263ppay.c: (gst_rtp_h263p_pay_class_init):
+       * gst/rtp/gstrtpmp4gpay.c: (gst_rtp_mp4g_pay_class_init):
+       * gst/rtp/gstrtpmp4vdepay.c: (gst_rtp_mp4v_depay_class_init):
+       * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_class_init):
+       * gst/rtp/gstrtpmpadepay.c: (gst_rtp_mpa_depay_class_init):
+       * gst/rtp/gstrtpmpapay.c: (gst_rtp_mpa_pay_class_init):
+       * gst/rtp/gstrtppcmadepay.c: (gst_rtp_pcma_depay_class_init):
+       * gst/rtp/gstrtppcmapay.c: (gst_rtp_pcma_pay_class_init):
+       * gst/rtp/gstrtppcmudepay.c: (gst_rtp_pcmu_depay_class_init):
+       * gst/rtp/gstrtppcmupay.c: (gst_rtp_pcmu_pay_class_init):
+       * gst/rtp/gstrtpspeexdepay.c: (gst_rtp_speex_depay_class_init):
+       * gst/rtp/gstrtpspeexpay.c: (gst_rtp_speex_pay_class_init):
+       * gst/rtsp/gstrtpdec.c: (gst_rtpdec_class_init):
+       * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_class_init):
+       * gst/smpte/gstsmpte.c: (gst_smpte_class_init):
+       * gst/udp/gstdynudpsink.c: (gst_dynudpsink_class_init):
+       * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_class_init):
+       * gst/udp/gstudpsink.c: (gst_udpsink_class_init):
+       * gst/videomixer/videomixer.c: (gst_videomixer_class_init):
+       * gst/wavenc/gstwavenc.c: (gst_wavenc_class_init):
+       * sys/oss/gstossdmabuffer.c: (gst_ossdmabuffer_class_init):
+       * sys/oss/gstosssink.c: (gst_oss_sink_class_init):
+       * sys/osxaudio/gstosxaudioelement.c:
+       (gst_osxaudioelement_class_init):
+       * sys/osxaudio/gstosxaudiosink.c: (gst_osxaudiosink_class_init):
+       * sys/osxaudio/gstosxaudiosrc.c: (gst_osxaudiosrc_class_init):
+       * sys/sunaudio/gstsunaudiosink.c: (gst_sunaudiosink_class_init):
+       Fix #337365 (g_type_class_ref <-> g_type_class_peek_parent)
+
+2006-04-08  Stefan Kost  <ensonic@users.sf.net>
+
        * ext/mikmod/gstmikmod.h:
        * gst/level/gstlevel.h:
        Fix more broken GObject macros
index 267c5e5..6f2aa6f 100644 (file)
@@ -197,7 +197,7 @@ gst_aasink_class_init (GstAASinkClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasesink_class = (GstBaseSinkClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_SINK);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_aasink_set_property;
   gobject_class->get_property = gst_aasink_get_property;
index cf25573..f19b1cf 100644 (file)
@@ -135,7 +135,7 @@ gst_esdsink_class_init (GstEsdSinkClass * klass)
   gstbaseaudiosink_class = (GstBaseAudioSinkClass *) klass;
   gstaudiosink_class = (GstAudioSinkClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_AUDIO_SINK);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->finalize = gst_esdsink_finalize;
 
index 418a27c..f1271b6 100644 (file)
@@ -232,7 +232,7 @@ gst_flac_tag_class_init (GstFlacTagClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gobject_class = (GObjectClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstelement_class->change_state = gst_flac_tag_change_state;
 }
index 93ca43d..198d78c 100644 (file)
@@ -210,7 +210,7 @@ gst_gdk_pixbuf_class_init (GstGdkPixbufClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_gdk_pixbuf_set_property;
   gobject_class->get_property = gst_gdk_pixbuf_get_property;
index 6cb8c76..93833cf 100644 (file)
@@ -151,7 +151,7 @@ gst_jpegenc_class_init (GstJpegEnc * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gst_jpegenc_signals[FRAME_ENCODED] =
       g_signal_new ("frame-encoded", G_TYPE_FROM_CLASS (klass),
index 7e2e28e..79aea65 100644 (file)
@@ -118,7 +118,7 @@ gst_smokedec_class_init (GstSmokeDec * klass)
 
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   GST_DEBUG_CATEGORY_INIT (smokedec_debug, "smokedec", 0, "Smoke decoder");
 }
index b68ba48..83bbf1f 100644 (file)
@@ -139,7 +139,7 @@ gst_smokeenc_class_init (GstSmokeEnc * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_smokeenc_set_property;
   gobject_class->get_property = gst_smokeenc_get_property;
index 20bb0e9..9139d19 100644 (file)
@@ -143,7 +143,7 @@ gst_cacasink_class_init (GstCACASinkClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasesink_class = (GstBaseSinkClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_SINK);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_cacasink_set_property;
   gobject_class->get_property = gst_cacasink_get_property;
index 77eaa69..70f615f 100644 (file)
@@ -120,7 +120,7 @@ gst_mngdec_class_init (GstMngDecClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstelement_class->change_state = gst_mngdec_change_state;
 
index 149b3cb..81b393e 100644 (file)
@@ -133,7 +133,7 @@ gst_mngenc_class_init (GstMngEncClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   g_object_class_install_property (gobject_class, ARG_SNAPSHOT,
       g_param_spec_boolean ("snapshot", "Snapshot",
index 9e262b5..a6da699 100644 (file)
@@ -115,7 +115,7 @@ gst_pngdec_class_init (GstPngDecClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstelement_class->change_state = gst_pngdec_change_state;
 
index f6d7a23..2078c30 100644 (file)
@@ -116,7 +116,7 @@ gst_pngenc_class_init (GstPngEncClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->get_property = gst_pngenc_get_property;
   gobject_class->set_property = gst_pngenc_set_property;
index 0900087..749c88c 100644 (file)
@@ -151,7 +151,7 @@ gst_mikmod_class_init (GstMikModClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SONGNAME,
       g_param_spec_string ("songname", "songname", "songname",
index f8933dd..522f8a3 100644 (file)
@@ -167,7 +167,7 @@ gst_shout2send_class_init (GstShout2sendClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstbasesink_class = (GstBaseSinkClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_SINK);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_shout2send_set_property;
   gobject_class->get_property = gst_shout2send_get_property;
index f6d9746..0a9fabd 100644 (file)
@@ -229,7 +229,7 @@ gst_speexenc_class_init (GstSpeexEncClass * klass)
       g_param_spec_string ("last-message", "last-message",
           "The last status message", NULL, G_PARAM_READABLE));
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_speexenc_finalize);
 
index cdb9db1..55fa32e 100644 (file)
@@ -235,7 +235,7 @@ gst_alpha_class_init (GstAlphaClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_alpha_set_property;
   gobject_class->get_property = gst_alpha_get_property;
index 15a374f..ea9014e 100644 (file)
@@ -222,7 +222,7 @@ gst_avimux_class_init (GstAviMuxClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BIGFILE,
       g_param_spec_boolean ("bigfile", "Bigfile Support",
index 2c72725..22a7da1 100644 (file)
@@ -160,7 +160,7 @@ gst_efence_class_init (GstEFenceClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_efence_set_property;
   gobject_class->get_property = gst_efence_get_property;
index feb6252..a01be1b 100644 (file)
@@ -162,7 +162,7 @@ gst_negotiation_class_init (GstNegotiationClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_negotiation_set_property;
   gobject_class->get_property = gst_negotiation_get_property;
index 585567e..ac9b569 100644 (file)
@@ -138,7 +138,7 @@ gst_flxdec_class_init (GstFlxDecClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   GST_DEBUG_CATEGORY_INIT (flxdec_debug, "flxdec", 0, "FLX video decoder");
 
index 745b0c6..848e6f9 100644 (file)
@@ -142,7 +142,7 @@ gst_goom_class_init (GstGoomClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->dispose = gst_goom_dispose;
 
index ed7c626..b2eb315 100644 (file)
@@ -163,7 +163,7 @@ gst_id3demux_class_init (GstID3DemuxClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->dispose = gst_id3demux_dispose;
 
index 0d18045..3352ce3 100644 (file)
@@ -205,7 +205,7 @@ gst_alawdec_base_init (GstALawDecClass * klass)
 static void
 gst_alawdec_class_init (GstALawDecClass * klass)
 {
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 }
 
 static void
index d2eef4c..d75a489 100644 (file)
@@ -241,7 +241,7 @@ gst_alawenc_base_init (GstALawEncClass * klass)
 static void
 gst_alawenc_class_init (GstALawEncClass * klass)
 {
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 }
 
 static void
index 67267a8..4bf060e 100644 (file)
@@ -175,7 +175,7 @@ gst_mulawenc_base_init (GstMuLawEncClass * klass)
 static void
 gst_mulawenc_class_init (GstMuLawEncClass * klass)
 {
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 }
 
 static void
index 448f06d..dccf65f 100644 (file)
@@ -124,7 +124,7 @@ gst_median_class_init (GstMedianClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ACTIVE, g_param_spec_boolean ("active", "active", "active", TRUE, G_PARAM_READWRITE));   /* CHECKME */
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FILTERSIZE, g_param_spec_int ("filtersize", "filtersize", "filtersize", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE));      /* CHECKME */
index 54f3f1c..36f6b3d 100644 (file)
@@ -180,7 +180,7 @@ gst_monoscope_class_init (GstMonoscopeClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   GST_DEBUG_CATEGORY_INIT (monoscope_debug, "monoscope", 0,
       "monoscope element");
index 1f064fc..781df21 100644 (file)
@@ -198,7 +198,7 @@ gst_multipart_mux_class_init (GstMultipartMuxClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->finalize = gst_multipart_mux_finalize;
   gobject_class->get_property = gst_multipart_mux_get_property;
index c2a1233..ff81ec7 100644 (file)
@@ -143,7 +143,7 @@ gst_asteriskh263_class_init (GstAsteriskh263Class * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->finalize = gst_asteriskh263_finalize;
 
index d7a48dd..a46a498 100644 (file)
@@ -120,7 +120,7 @@ gst_rtp_L16depay_class_init (GstRtpL16DepayClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PAYLOAD_TYPE,
       g_param_spec_int ("payload_type", "payload_type", "payload type",
index ce424fe..fb17eb1 100644 (file)
@@ -124,7 +124,7 @@ gst_rtpL16pay_class_init (GstRtpL16PayClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_rtpL16pay_set_property;
   gobject_class->get_property = gst_rtpL16pay_get_property;
index 9a4d7c9..c6272bb 100644 (file)
@@ -146,7 +146,7 @@ gst_rtp_amr_depay_class_init (GstRtpAMRDepayClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_rtp_amr_depay_set_property;
   gobject_class->get_property = gst_rtp_amr_depay_get_property;
index 93dd5fb..cf9cda6 100644 (file)
@@ -126,7 +126,7 @@ gst_rtp_amr_pay_class_init (GstRtpAMRPayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstbasertppayload_class->set_caps = gst_rtp_amr_pay_setcaps;
   gstbasertppayload_class->handle_buffer = gst_rtp_amr_pay_handle_buffer;
index 9b114aa..ee8d680 100644 (file)
@@ -142,7 +142,7 @@ gst_rtp_depay_class_init (gpointer g_class)
 
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SKIP, g_param_spec_int ("skip", "skip", "skip", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE));      /* CHECKME */
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstelement_class->change_state = gst_rtp_depay_change_state;
 
index 6f5fb77..d2816de 100644 (file)
@@ -83,7 +83,7 @@ gst_rtp_gsm_depay_class_init (GstRTPGSMDepayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertp_depayload_class = (GstBaseRTPDepayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_DEPAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstbasertp_depayload_class->process = gst_rtp_gsm_depay_process;
   gstbasertp_depayload_class->set_caps = gst_rtp_gsm_depay_setcaps;
index 0c324d3..2c0fb96 100644 (file)
@@ -83,7 +83,7 @@ gst_rtp_gsm_pay_class_init (GstRTPGSMPayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstbasertppayload_class->set_caps = gst_rtp_gsm_pay_setcaps;
   gstbasertppayload_class->handle_buffer = gst_rtp_gsm_pay_handle_buffer;
index 45b96ce..8615c47 100644 (file)
@@ -223,7 +223,7 @@ gst_rtp_h263_pay_class_init (GstRtpH263PayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->finalize = gst_rtp_h263_pay_finalize;
 
index d4003c7..a387197 100644 (file)
@@ -99,7 +99,7 @@ gst_rtp_h263p_depay_class_init (GstRtpH263PDepayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_DEPAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstbasertpdepayload_class->process = gst_rtp_h263p_depay_process;
   gstbasertpdepayload_class->set_caps = gst_rtp_h263p_depay_setcaps;
index 532b4a6..0a2d96b 100644 (file)
@@ -107,7 +107,7 @@ gst_rtp_h263p_pay_class_init (GstRtpH263PPayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->finalize = gst_rtp_h263p_pay_finalize;
 
index 36b955a..efe2906 100644 (file)
@@ -143,7 +143,7 @@ gst_rtp_mp4g_pay_class_init (GstRtpMP4GPayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_rtp_mp4g_pay_set_property;
   gobject_class->get_property = gst_rtp_mp4g_pay_get_property;
index a9ac441..fe0b4e5 100644 (file)
@@ -106,7 +106,7 @@ gst_rtp_mp4v_depay_class_init (GstRtpMP4VDepayClass * klass)
 
   gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_DEPAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstbasertpdepayload_class->process = gst_rtp_mp4v_depay_process;
   gstbasertpdepayload_class->set_caps = gst_rtp_mp4v_depay_setcaps;
index 59dae81..7bdbdbe 100644 (file)
@@ -131,7 +131,7 @@ gst_rtp_mp4v_pay_class_init (GstRtpMP4VPayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_rtp_mp4v_pay_set_property;
   gobject_class->get_property = gst_rtp_mp4v_pay_get_property;
index 822a3d3..9b814c0 100644 (file)
@@ -121,7 +121,7 @@ gst_rtp_mpa_depay_class_init (GstRtpMPADepayClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_rtp_mpa_depay_set_property;
   gobject_class->get_property = gst_rtp_mpa_depay_get_property;
index 1e60bb7..b15d55b 100644 (file)
@@ -107,7 +107,7 @@ gst_rtp_mpa_pay_class_init (GstRtpMPAPayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->finalize = gst_rtp_mpa_pay_finalize;
 
index 2694ae6..e67f814 100644 (file)
@@ -88,7 +88,7 @@ gst_rtp_pcma_depay_class_init (GstRtpPcmaDepayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_DEPAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstbasertpdepayload_class->process = gst_rtp_pcma_depay_process;
   gstbasertpdepayload_class->set_caps = gst_rtp_pcma_depay_setcaps;
index b4526ce..439efaa 100644 (file)
@@ -85,7 +85,7 @@ gst_rtp_pcma_pay_class_init (GstRtpPmcaPayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
   gobject_class->finalize = gst_rtp_pcma_pay_finalize;
 
   gstbasertppayload_class->set_caps = gst_rtp_pcma_pay_setcaps;
index fd02ee3..0b6a208 100644 (file)
@@ -89,7 +89,7 @@ gst_rtp_pcmu_depay_class_init (GstRtpPcmuDepayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_DEPAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstbasertpdepayload_class->process = gst_rtp_pcmu_depay_process;
   gstbasertpdepayload_class->set_caps = gst_rtp_pcmu_depay_setcaps;
index 2ddbc43..ffb220b 100644 (file)
@@ -85,7 +85,7 @@ gst_rtp_pcmu_pay_class_init (GstRtpPcmuPayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
   gobject_class->finalize = gst_rtp_pcmu_pay_finalize;
 
   gstbasertppayload_class->set_caps = gst_rtp_pcmu_pay_setcaps;
index 5858596..84d08c2 100644 (file)
@@ -88,7 +88,7 @@ gst_rtp_speex_depay_class_init (GstRtpSPEEXDepayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_DEPAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstbasertpdepayload_class->process = gst_rtp_speex_depay_process;
   gstbasertpdepayload_class->set_caps = gst_rtp_speex_depay_setcaps;
index e954a2c..c1f3727 100644 (file)
@@ -79,7 +79,7 @@ gst_rtp_speex_pay_class_init (GstRtpSPEEXPayClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstbasertppayload_class->set_caps = gst_rtp_speex_pay_setcaps;
   gstbasertppayload_class->handle_buffer = gst_rtp_speex_pay_handle_buffer;
index 02785ef..073b38d 100644 (file)
@@ -139,7 +139,7 @@ gst_rtpdec_class_init (gpointer g_class)
 
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SKIP, g_param_spec_int ("skip", "skip", "skip", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE));      /* CHECKME */
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gstelement_class->change_state = gst_rtpdec_change_state;
 
index f048196..b208bec 100644 (file)
@@ -168,7 +168,7 @@ gst_rtspsrc_class_init (GstRTSPSrc * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_rtspsrc_set_property;
   gobject_class->get_property = gst_rtspsrc_get_property;
index cf08f1e..695861a 100644 (file)
@@ -170,7 +170,7 @@ gst_smpte_class_init (GstSMPTEClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_smpte_set_property;
   gobject_class->get_property = gst_smpte_get_property;
index a9289c9..a332902 100644 (file)
@@ -127,7 +127,7 @@ gst_dynudpsink_class_init (GstDynUDPSink * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasesink_class = (GstBaseSinkClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_SINK);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_dynudpsink_set_property;
   gobject_class->get_property = gst_dynudpsink_get_property;
index 5ef1c09..1a675c5 100644 (file)
@@ -144,7 +144,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasesink_class = (GstBaseSinkClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_SINK);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_multiudpsink_set_property;
   gobject_class->get_property = gst_multiudpsink_get_property;
index d7b0f70..2f8d00c 100644 (file)
@@ -118,7 +118,7 @@ gst_udpsink_class_init (GstUDPSink * klass)
   gstelement_class = (GstElementClass *) klass;
   gstbasesink_class = (GstBaseSinkClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_MULTIUDPSINK);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->set_property = gst_udpsink_set_property;
   gobject_class->get_property = gst_udpsink_get_property;
index b1cf4a5..9b2a341 100644 (file)
@@ -524,7 +524,7 @@ gst_videomixer_class_init (GstVideoMixerClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->get_property = gst_videomixer_get_property;
   gobject_class->set_property = gst_videomixer_set_property;
index f2eff53..f777c40 100644 (file)
@@ -183,7 +183,7 @@ gst_wavenc_class_init (GstWavEncClass * klass)
 
   element_class->change_state = gst_wavenc_change_state;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   GST_DEBUG_CATEGORY_INIT (wavenc_debug, "wavenc", 0, "WAV encoder element");
 }
index 5078d3c..f37cf36 100644 (file)
@@ -101,7 +101,7 @@ gst_ossdmabuffer_class_init (GstOssDMABufferClass * klass)
   gstobject_class = (GstObjectClass *) klass;
   gstringbuffer_class = (GstRingBufferClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_RINGBUFFER);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_ossdmabuffer_dispose);
   gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_ossdmabuffer_finalize);
index 29e2e3f..c1bc548 100644 (file)
@@ -178,7 +178,7 @@ gst_oss_sink_class_init (GstOssSinkClass * klass)
   gstbaseaudiosink_class = (GstBaseAudioSinkClass *) klass;
   gstaudiosink_class = (GstAudioSinkClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_AUDIO_SINK);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_oss_sink_dispose);
   gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_oss_sink_finalise);
index 0fd66dc..db142ca 100644 (file)
@@ -106,7 +106,7 @@ gst_osxaudioelement_class_init (GstOsxAudioElementClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DEVICE,
       g_param_spec_int ("device", "Device index",
index 433bd4d..75998b6 100644 (file)
@@ -121,7 +121,7 @@ gst_osxaudiosink_class_init (GstOsxAudioSinkClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_OSXAUDIOELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gst_osssink_signals[SIGNAL_HANDOFF] =
       g_signal_new ("handoff", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
index 6d0331c..c6e25cb 100644 (file)
@@ -114,7 +114,7 @@ gst_osxaudiosrc_class_init (GstOsxAudioSrcClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_OSXAUDIOELEMENT);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->dispose = gst_osxaudiosrc_dispose;
 
index 622b7ec..9d50c8c 100644 (file)
@@ -151,7 +151,7 @@ gst_sunaudiosink_class_init (GstSunAudioSinkClass * klass)
   gstbaseaudiosink_class = (GstBaseAudioSinkClass *) klass;
   gstaudiosink_class = (GstAudioSinkClass *) klass;
 
-  parent_class = g_type_class_ref (GST_TYPE_BASE_AUDIO_SINK);
+  parent_class = g_type_class_peek_parent (klass);
 
   gobject_class->dispose = gst_sunaudiosink_dispose;
   gobject_class->set_property =