rtpfunnel: Stop using G_DECLARE_FINAL_TYPE

Fixes #516
This commit is contained in:
Mathieu Duponchelle 2018-11-13 00:37:11 +01:00
parent c9ed35f641
commit fd560bcb27
2 changed files with 20 additions and 2 deletions

View file

@ -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;

View file

@ -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__ */