diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2006-04-08 21:21:45 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2006-04-08 21:21:45 +0000 |
commit | b5af832d7b24c3f355ac996407db915a33c7062f (patch) | |
tree | 65305da277ed6246b89c651a3965081a038754af | |
parent | bdb14e66976c0f5129955d891a327dfb42601879 (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)
65 files changed, 135 insertions, 64 deletions
@@ -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 267c5e503..6f2aa6f9e 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 cf25573d8..f19b1cfca 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 418a27c25..f1271b6f1 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 93ca43dd9..198d78c05 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 6cb8c76cf..93833cf5b 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 7e2e28e6a..79aea6550 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 b68ba4863..83bbf1f06 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 20bb0e965..9139d1999 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 77eaa698b..70f615fb8 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 149b3cb00..81b393e55 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 9e262b591..a6da699e2 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 f6d7a23d8..2078c3070 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 09000875e..749c88c98 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 f8933ddbe..522f8a3fd 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 f6d974676..0a9fabd05 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 cdb9db1cf..55fa32e85 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 15a374fac..ea9014e83 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 2c7272515..22a7da1e9 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 feb62524f..a01be1b1b 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 585567e38..ac9b56923 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 745b0c6e7..848e6f938 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 ed7c6260c..b2eb31596 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 0d1804593..3352ce385 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 d2eef4cf7..d75a48909 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 67267a859..4bf060e2b 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 448f06d99..dccf65f68 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 54f3f1cee..36f6b3d1f 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 1f064fcc3..781df21a4 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 c2a123374..ff81ec717 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 d7a48dd66..a46a49812 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 ce424fe4e..fb17eb18b 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 9a4d7c991..c6272bbe5 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 93dd5fb07..cf9cda6bd 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 9b114aa34..ee8d680c4 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 6f5fb775d..d2816de2e 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 0c324d319..2c0fb9632 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 45b96ce36..8615c4733 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 d4003c725..a38719788 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 532b4a694..0a2d96b23 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 36b955a17..efe290639 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 a9ac441a0..fe0b4e5a1 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 59dae8194..7bdbdbe78 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 822a3d3d3..9b814c081 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 1e60bb7e5..b15d55bab 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 2694ae623..e67f814b2 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 b4526ce75..439efaa9d 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 fd02ee35a..0b6a208b5 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 2ddbc4362..ffb220b5d 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 5858596c3..84d08c252 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 e954a2cec..c1f372776 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 02785ef7c..073b38de9 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 f04819681..b208bec6e 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 cf08f1eac..695861a8a 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 a9289c910..a332902f5 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 5ef1c0968..1a675c564 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 d7b0f70ec..2f8d00c21 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 b1cf4a57b..9b2a34148 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 f2eff530d..f777c4061 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 5078d3c41..f37cf368b 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 29e2e3f24..c1bc5480e 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 0fd66dc72..db142cae6 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 433bd4d17..75998b6d8 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 6d0331cab..c6e25cbd8 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 622b7ecef..9d50c8c20 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 = |