From fd560bcb27b9b1437601d0c595e1174ba93319de Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 13 Nov 2018 00:37:11 +0100 Subject: [PATCH] rtpfunnel: Stop using G_DECLARE_FINAL_TYPE Fixes #516 --- gst/rtpmanager/gstrtpfunnel.c | 10 ++++++++++ gst/rtpmanager/gstrtpfunnel.h | 12 ++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/gst/rtpmanager/gstrtpfunnel.c b/gst/rtpmanager/gstrtpfunnel.c index 8bfc0f2..d7c3964 100644 --- a/gst/rtpmanager/gstrtpfunnel.c +++ b/gst/rtpmanager/gstrtpfunnel.c @@ -29,6 +29,11 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_funnel_debug); #define GST_CAT_DEFAULT gst_rtp_funnel_debug +struct _GstRtpFunnelPadClass +{ + GstPadClass class; +}; + struct _GstRtpFunnelPad { GstPad pad; @@ -57,6 +62,11 @@ gst_rtp_funnel_pad_init (GstRtpFunnelPad * pad) (void) pad; } +struct _GstRtpFunnelClass +{ + GstElementClass class; +}; + struct _GstRtpFunnel { GstElement element; diff --git a/gst/rtpmanager/gstrtpfunnel.h b/gst/rtpmanager/gstrtpfunnel.h index 26f6230..6fb16d0 100644 --- a/gst/rtpmanager/gstrtpfunnel.h +++ b/gst/rtpmanager/gstrtpfunnel.h @@ -27,14 +27,22 @@ G_BEGIN_DECLS -G_DECLARE_FINAL_TYPE (GstRtpFunnel, gst_rtp_funnel, GST, RTP_FUNNEL, GstElement) +typedef struct _GstRtpFunnelClass GstRtpFunnelClass; +typedef struct _GstRtpFunnel GstRtpFunnel; + #define GST_TYPE_RTP_FUNNEL (gst_rtp_funnel_get_type()) #define GST_RTP_FUNNEL_CAST(obj) ((GstRtpFunnel *)(obj)) -G_DECLARE_FINAL_TYPE (GstRtpFunnelPad, gst_rtp_funnel_pad, GST, RTP_FUNNEL_PAD, GstPad) +GType gst_rtp_funnel_get_type (void); + +typedef struct _GstRtpFunnelPadClass GstRtpFunnelPadClass; +typedef struct _GstRtpFunnelPad GstRtpFunnelPad; + #define GST_TYPE_RTP_FUNNEL_PAD (gst_rtp_funnel_pad_get_type()) #define GST_RTP_FUNNEL_PAD_CAST(obj) ((GstRtpFunnelPad *)(obj)) +GType gst_rtp_funnel_pad_get_type (void); + G_END_DECLS #endif /* __GST_RTP_FUNNEL_H__ */ -- 2.7.4