summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2006-04-08 21:21:45 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2006-04-08 21:21:45 +0000
commitb5af832d7b24c3f355ac996407db915a33c7062f (patch)
tree65305da277ed6246b89c651a3965081a038754af
parentbdb14e66976c0f5129955d891a327dfb42601879 (diff)
Fix #337365 (g_type_class_ref <-> g_type_class_peek_parent)
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)
-rw-r--r--ChangeLog71
-rw-r--r--ext/aalib/gstaasink.c2
-rw-r--r--ext/esd/esdsink.c2
-rw-r--r--ext/flac/gstflactag.c2
-rw-r--r--ext/gdk_pixbuf/gstgdkpixbuf.c2
-rw-r--r--ext/jpeg/gstjpegenc.c2
-rw-r--r--ext/jpeg/gstsmokedec.c2
-rw-r--r--ext/jpeg/gstsmokeenc.c2
-rw-r--r--ext/libcaca/gstcacasink.c2
-rw-r--r--ext/libmng/gstmngdec.c2
-rw-r--r--ext/libmng/gstmngenc.c2
-rw-r--r--ext/libpng/gstpngdec.c2
-rw-r--r--ext/libpng/gstpngenc.c2
-rw-r--r--ext/mikmod/gstmikmod.c2
-rw-r--r--ext/shout2/gstshout2.c2
-rw-r--r--ext/speex/gstspeexenc.c2
-rw-r--r--gst/alpha/gstalpha.c2
-rw-r--r--gst/avi/gstavimux.c2
-rw-r--r--gst/debug/efence.c2
-rw-r--r--gst/debug/negotiation.c2
-rw-r--r--gst/flx/gstflxdec.c2
-rw-r--r--gst/goom/gstgoom.c2
-rw-r--r--gst/id3demux/gstid3demux.c2
-rw-r--r--gst/law/alaw-decode.c2
-rw-r--r--gst/law/alaw-encode.c2
-rw-r--r--gst/law/mulaw-encode.c2
-rw-r--r--gst/median/gstmedian.c2
-rw-r--r--gst/monoscope/gstmonoscope.c2
-rw-r--r--gst/multipart/multipartmux.c2
-rw-r--r--gst/rtp/gstasteriskh263.c2
-rw-r--r--gst/rtp/gstrtpL16depay.c2
-rw-r--r--gst/rtp/gstrtpL16pay.c2
-rw-r--r--gst/rtp/gstrtpamrdepay.c2
-rw-r--r--gst/rtp/gstrtpamrpay.c2
-rw-r--r--gst/rtp/gstrtpdepay.c2
-rw-r--r--gst/rtp/gstrtpgsmdepay.c2
-rw-r--r--gst/rtp/gstrtpgsmpay.c2
-rw-r--r--gst/rtp/gstrtph263pay.c2
-rw-r--r--gst/rtp/gstrtph263pdepay.c2
-rw-r--r--gst/rtp/gstrtph263ppay.c2
-rw-r--r--gst/rtp/gstrtpmp4gpay.c2
-rw-r--r--gst/rtp/gstrtpmp4vdepay.c2
-rw-r--r--gst/rtp/gstrtpmp4vpay.c2
-rw-r--r--gst/rtp/gstrtpmpadepay.c2
-rw-r--r--gst/rtp/gstrtpmpapay.c2
-rw-r--r--gst/rtp/gstrtppcmadepay.c2
-rw-r--r--gst/rtp/gstrtppcmapay.c2
-rw-r--r--gst/rtp/gstrtppcmudepay.c2
-rw-r--r--gst/rtp/gstrtppcmupay.c2
-rw-r--r--gst/rtp/gstrtpspeexdepay.c2
-rw-r--r--gst/rtp/gstrtpspeexpay.c2
-rw-r--r--gst/rtsp/gstrtpdec.c2
-rw-r--r--gst/rtsp/gstrtspsrc.c2
-rw-r--r--gst/smpte/gstsmpte.c2
-rw-r--r--gst/udp/gstdynudpsink.c2
-rw-r--r--gst/udp/gstmultiudpsink.c2
-rw-r--r--gst/udp/gstudpsink.c2
-rw-r--r--gst/videomixer/videomixer.c2
-rw-r--r--gst/wavenc/gstwavenc.c2
-rw-r--r--sys/oss/gstossdmabuffer.c2
-rw-r--r--sys/oss/gstosssink.c2
-rw-r--r--sys/osxaudio/gstosxaudioelement.c2
-rw-r--r--sys/osxaudio/gstosxaudiosink.c2
-rw-r--r--sys/osxaudio/gstosxaudiosrc.c2
-rw-r--r--sys/sunaudio/gstsunaudiosink.c2
65 files changed, 135 insertions, 64 deletions
diff --git a/ChangeLog b/ChangeLog
index 258a5f49..30c6714c 100644
--- 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
diff --git a/ext/aalib/gstaasink.c b/ext/aalib/gstaasink.c
index 267c5e50..6f2aa6f9 100644
--- a/ext/aalib/gstaasink.c
+++ b/ext/aalib/gstaasink.c
@@ -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;
diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c
index cf25573d..f19b1cfc 100644
--- a/ext/esd/esdsink.c
+++ b/ext/esd/esdsink.c
@@ -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;
diff --git a/ext/flac/gstflactag.c b/ext/flac/gstflactag.c
index 418a27c2..f1271b6f 100644
--- a/ext/flac/gstflactag.c
+++ b/ext/flac/gstflactag.c
@@ -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;
}
diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c
index 93ca43dd..198d78c0 100644
--- a/ext/gdk_pixbuf/gstgdkpixbuf.c
+++ b/ext/gdk_pixbuf/gstgdkpixbuf.c
@@ -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;
diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c
index 6cb8c76c..93833cf5 100644
--- a/ext/jpeg/gstjpegenc.c
+++ b/ext/jpeg/gstjpegenc.c
@@ -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),
diff --git a/ext/jpeg/gstsmokedec.c b/ext/jpeg/gstsmokedec.c
index 7e2e28e6..79aea655 100644
--- a/ext/jpeg/gstsmokedec.c
+++ b/ext/jpeg/gstsmokedec.c
@@ -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");
}
diff --git a/ext/jpeg/gstsmokeenc.c b/ext/jpeg/gstsmokeenc.c
index b68ba486..83bbf1f0 100644
--- a/ext/jpeg/gstsmokeenc.c
+++ b/ext/jpeg/gstsmokeenc.c
@@ -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;
diff --git a/ext/libcaca/gstcacasink.c b/ext/libcaca/gstcacasink.c
index 20bb0e96..9139d199 100644
--- a/ext/libcaca/gstcacasink.c
+++ b/ext/libcaca/gstcacasink.c
@@ -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;
diff --git a/ext/libmng/gstmngdec.c b/ext/libmng/gstmngdec.c
index 77eaa698..70f615fb 100644
--- a/ext/libmng/gstmngdec.c
+++ b/ext/libmng/gstmngdec.c
@@ -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;
diff --git a/ext/libmng/gstmngenc.c b/ext/libmng/gstmngenc.c
index 149b3cb0..81b393e5 100644
--- a/ext/libmng/gstmngenc.c
+++ b/ext/libmng/gstmngenc.c
@@ -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",
diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c
index 9e262b59..a6da699e 100644
--- a/ext/libpng/gstpngdec.c
+++ b/ext/libpng/gstpngdec.c
@@ -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;
diff --git a/ext/libpng/gstpngenc.c b/ext/libpng/gstpngenc.c
index f6d7a23d..2078c307 100644
--- a/ext/libpng/gstpngenc.c
+++ b/ext/libpng/gstpngenc.c
@@ -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;
diff --git a/ext/mikmod/gstmikmod.c b/ext/mikmod/gstmikmod.c
index 09000875..749c88c9 100644
--- a/ext/mikmod/gstmikmod.c
+++ b/ext/mikmod/gstmikmod.c
@@ -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",
diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c
index f8933ddb..522f8a3f 100644
--- a/ext/shout2/gstshout2.c
+++ b/ext/shout2/gstshout2.c
@@ -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;
diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c
index f6d97467..0a9fabd0 100644
--- a/ext/speex/gstspeexenc.c
+++ b/ext/speex/gstspeexenc.c
@@ -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);
diff --git a/gst/alpha/gstalpha.c b/gst/alpha/gstalpha.c
index cdb9db1c..55fa32e8 100644
--- a/gst/alpha/gstalpha.c
+++ b/gst/alpha/gstalpha.c
@@ -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;
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c
index 15a374fa..ea9014e8 100644
--- a/gst/avi/gstavimux.c
+++ b/gst/avi/gstavimux.c
@@ -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",
diff --git a/gst/debug/efence.c b/gst/debug/efence.c
index 2c727251..22a7da1e 100644
--- a/gst/debug/efence.c
+++ b/gst/debug/efence.c
@@ -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;
diff --git a/gst/debug/negotiation.c b/gst/debug/negotiation.c
index feb62524..a01be1b1 100644
--- a/gst/debug/negotiation.c
+++ b/gst/debug/negotiation.c
@@ -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;
diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c
index 585567e3..ac9b5692 100644
--- a/gst/flx/gstflxdec.c
+++ b/gst/flx/gstflxdec.c
@@ -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");
diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c
index 745b0c6e..848e6f93 100644
--- a/gst/goom/gstgoom.c
+++ b/gst/goom/gstgoom.c
@@ -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;
diff --git a/gst/id3demux/gstid3demux.c b/gst/id3demux/gstid3demux.c
index ed7c6260..b2eb3159 100644
--- a/gst/id3demux/gstid3demux.c
+++ b/gst/id3demux/gstid3demux.c
@@ -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;
diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c
index 0d180459..3352ce38 100644
--- a/gst/law/alaw-decode.c
+++ b/gst/law/alaw-decode.c
@@ -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
diff --git a/gst/law/alaw-encode.c b/gst/law/alaw-encode.c
index d2eef4cf..d75a4890 100644
--- a/gst/law/alaw-encode.c
+++ b/gst/law/alaw-encode.c
@@ -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
diff --git a/gst/law/mulaw-encode.c b/gst/law/mulaw-encode.c
index 67267a85..4bf060e2 100644
--- a/gst/law/mulaw-encode.c
+++ b/gst/law/mulaw-encode.c
@@ -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
diff --git a/gst/median/gstmedian.c b/gst/median/gstmedian.c
index 448f06d9..dccf65f6 100644
--- a/gst/median/gstmedian.c
+++ b/gst/median/gstmedian.c
@@ -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 */
diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c
index 54f3f1ce..36f6b3d1 100644
--- a/gst/monoscope/gstmonoscope.c
+++ b/gst/monoscope/gstmonoscope.c
@@ -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");
diff --git a/gst/multipart/multipartmux.c b/gst/multipart/multipartmux.c
index 1f064fcc..781df21a 100644
--- a/gst/multipart/multipartmux.c
+++ b/gst/multipart/multipartmux.c
@@ -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;
diff --git a/gst/rtp/gstasteriskh263.c b/gst/rtp/gstasteriskh263.c
index c2a12337..ff81ec71 100644
--- a/gst/rtp/gstasteriskh263.c
+++ b/gst/rtp/gstasteriskh263.c
@@ -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;
diff --git a/gst/rtp/gstrtpL16depay.c b/gst/rtp/gstrtpL16depay.c
index d7a48dd6..a46a4981 100644
--- a/gst/rtp/gstrtpL16depay.c
+++ b/gst/rtp/gstrtpL16depay.c
@@ -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",
diff --git a/gst/rtp/gstrtpL16pay.c b/gst/rtp/gstrtpL16pay.c
index ce424fe4..fb17eb18 100644
--- a/gst/rtp/gstrtpL16pay.c
+++ b/gst/rtp/gstrtpL16pay.c
@@ -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;
diff --git a/gst/rtp/gstrtpamrdepay.c b/gst/rtp/gstrtpamrdepay.c
index 9a4d7c99..c6272bbe 100644
--- a/gst/rtp/gstrtpamrdepay.c
+++ b/gst/rtp/gstrtpamrdepay.c
@@ -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;
diff --git a/gst/rtp/gstrtpamrpay.c b/gst/rtp/gstrtpamrpay.c
index 93dd5fb0..cf9cda6b 100644
--- a/gst/rtp/gstrtpamrpay.c
+++ b/gst/rtp/gstrtpamrpay.c
@@ -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;
diff --git a/gst/rtp/gstrtpdepay.c b/gst/rtp/gstrtpdepay.c
index 9b114aa3..ee8d680c 100644
--- a/gst/rtp/gstrtpdepay.c
+++ b/gst/rtp/gstrtpdepay.c
@@ -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;
diff --git a/gst/rtp/gstrtpgsmdepay.c b/gst/rtp/gstrtpgsmdepay.c
index 6f5fb775..d2816de2 100644
--- a/gst/rtp/gstrtpgsmdepay.c
+++ b/gst/rtp/gstrtpgsmdepay.c
@@ -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;
diff --git a/gst/rtp/gstrtpgsmpay.c b/gst/rtp/gstrtpgsmpay.c
index 0c324d31..2c0fb963 100644
--- a/gst/rtp/gstrtpgsmpay.c
+++ b/gst/rtp/gstrtpgsmpay.c
@@ -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;
diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c
index 45b96ce3..8615c473 100644
--- a/gst/rtp/gstrtph263pay.c
+++ b/gst/rtp/gstrtph263pay.c
@@ -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;
diff --git a/gst/rtp/gstrtph263pdepay.c b/gst/rtp/gstrtph263pdepay.c
index d4003c72..a3871978 100644
--- a/gst/rtp/gstrtph263pdepay.c
+++ b/gst/rtp/gstrtph263pdepay.c
@@ -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;
diff --git a/gst/rtp/gstrtph263ppay.c b/gst/rtp/gstrtph263ppay.c
index 532b4a69..0a2d96b2 100644
--- a/gst/rtp/gstrtph263ppay.c
+++ b/gst/rtp/gstrtph263ppay.c
@@ -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;
diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c
index 36b955a1..efe29063 100644
--- a/gst/rtp/gstrtpmp4gpay.c
+++ b/gst/rtp/gstrtpmp4gpay.c
@@ -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;
diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c
index a9ac441a..fe0b4e5a 100644
--- a/gst/rtp/gstrtpmp4vdepay.c
+++ b/gst/rtp/gstrtpmp4vdepay.c
@@ -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;
diff --git a/gst/rtp/gstrtpmp4vpay.c b/gst/rtp/gstrtpmp4vpay.c
index 59dae819..7bdbdbe7 100644
--- a/gst/rtp/gstrtpmp4vpay.c
+++ b/gst/rtp/gstrtpmp4vpay.c
@@ -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;
diff --git a/gst/rtp/gstrtpmpadepay.c b/gst/rtp/gstrtpmpadepay.c
index 822a3d3d..9b814c08 100644
--- a/gst/rtp/gstrtpmpadepay.c
+++ b/gst/rtp/gstrtpmpadepay.c
@@ -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;
diff --git a/gst/rtp/gstrtpmpapay.c b/gst/rtp/gstrtpmpapay.c
index 1e60bb7e..b15d55ba 100644
--- a/gst/rtp/gstrtpmpapay.c
+++ b/gst/rtp/gstrtpmpapay.c
@@ -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;
diff --git a/gst/rtp/gstrtppcmadepay.c b/gst/rtp/gstrtppcmadepay.c
index 2694ae62..e67f814b 100644
--- a/gst/rtp/gstrtppcmadepay.c
+++ b/gst/rtp/gstrtppcmadepay.c
@@ -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;
diff --git a/gst/rtp/gstrtppcmapay.c b/gst/rtp/gstrtppcmapay.c
index b4526ce7..439efaa9 100644
--- a/gst/rtp/gstrtppcmapay.c
+++ b/gst/rtp/gstrtppcmapay.c
@@ -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;
diff --git a/gst/rtp/gstrtppcmudepay.c b/gst/rtp/gstrtppcmudepay.c
index fd02ee35..0b6a208b 100644
--- a/gst/rtp/gstrtppcmudepay.c
+++ b/gst/rtp/gstrtppcmudepay.c
@@ -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;
diff --git a/gst/rtp/gstrtppcmupay.c b/gst/rtp/gstrtppcmupay.c
index 2ddbc436..ffb220b5 100644
--- a/gst/rtp/gstrtppcmupay.c
+++ b/gst/rtp/gstrtppcmupay.c
@@ -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;
diff --git a/gst/rtp/gstrtpspeexdepay.c b/gst/rtp/gstrtpspeexdepay.c
index 5858596c..84d08c25 100644
--- a/gst/rtp/gstrtpspeexdepay.c
+++ b/gst/rtp/gstrtpspeexdepay.c
@@ -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;
diff --git a/gst/rtp/gstrtpspeexpay.c b/gst/rtp/gstrtpspeexpay.c
index e954a2ce..c1f37277 100644
--- a/gst/rtp/gstrtpspeexpay.c
+++ b/gst/rtp/gstrtpspeexpay.c
@@ -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;
diff --git a/gst/rtsp/gstrtpdec.c b/gst/rtsp/gstrtpdec.c
index 02785ef7..073b38de 100644
--- a/gst/rtsp/gstrtpdec.c
+++ b/gst/rtsp/gstrtpdec.c
@@ -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;
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index f0481968..b208bec6 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -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;
diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c
index cf08f1ea..695861a8 100644
--- a/gst/smpte/gstsmpte.c
+++ b/gst/smpte/gstsmpte.c
@@ -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;
diff --git a/gst/udp/gstdynudpsink.c b/gst/udp/gstdynudpsink.c
index a9289c91..a332902f 100644
--- a/gst/udp/gstdynudpsink.c
+++ b/gst/udp/gstdynudpsink.c
@@ -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;
diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c
index 5ef1c096..1a675c56 100644
--- a/gst/udp/gstmultiudpsink.c
+++ b/gst/udp/gstmultiudpsink.c
@@ -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;
diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c
index d7b0f70e..2f8d00c2 100644
--- a/gst/udp/gstudpsink.c
+++ b/gst/udp/gstudpsink.c
@@ -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;
diff --git a/gst/videomixer/videomixer.c b/gst/videomixer/videomixer.c
index b1cf4a57..9b2a3414 100644
--- a/gst/videomixer/videomixer.c
+++ b/gst/videomixer/videomixer.c
@@ -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;
diff --git a/gst/wavenc/gstwavenc.c b/gst/wavenc/gstwavenc.c
index f2eff530..f777c406 100644
--- a/gst/wavenc/gstwavenc.c
+++ b/gst/wavenc/gstwavenc.c
@@ -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");
}
diff --git a/sys/oss/gstossdmabuffer.c b/sys/oss/gstossdmabuffer.c
index 5078d3c4..f37cf368 100644
--- a/sys/oss/gstossdmabuffer.c
+++ b/sys/oss/gstossdmabuffer.c
@@ -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);
diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c
index 29e2e3f2..c1bc5480 100644
--- a/sys/oss/gstosssink.c
+++ b/sys/oss/gstosssink.c
@@ -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);
diff --git a/sys/osxaudio/gstosxaudioelement.c b/sys/osxaudio/gstosxaudioelement.c
index 0fd66dc7..db142cae 100644
--- a/sys/osxaudio/gstosxaudioelement.c
+++ b/sys/osxaudio/gstosxaudioelement.c
@@ -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",
diff --git a/sys/osxaudio/gstosxaudiosink.c b/sys/osxaudio/gstosxaudiosink.c
index 433bd4d1..75998b6d 100644
--- a/sys/osxaudio/gstosxaudiosink.c
+++ b/sys/osxaudio/gstosxaudiosink.c
@@ -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,
diff --git a/sys/osxaudio/gstosxaudiosrc.c b/sys/osxaudio/gstosxaudiosrc.c
index 6d0331ca..c6e25cbd 100644
--- a/sys/osxaudio/gstosxaudiosrc.c
+++ b/sys/osxaudio/gstosxaudiosrc.c
@@ -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;
diff --git a/sys/sunaudio/gstsunaudiosink.c b/sys/sunaudio/gstsunaudiosink.c
index 622b7ece..9d50c8c2 100644
--- a/sys/sunaudio/gstsunaudiosink.c
+++ b/sys/sunaudio/gstsunaudiosink.c
@@ -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 =