mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
dv: Use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
5bd3fcf726
commit
51448ea5f1
2 changed files with 4 additions and 45 deletions
|
@ -30,22 +30,8 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
#define GST_TYPE_DVDEC \
|
||||
(gst_dvdec_get_type())
|
||||
#define GST_DVDEC(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DVDEC,GstDVDec))
|
||||
#define GST_DVDEC_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DVDEC,GstDVDecClass))
|
||||
#define GST_IS_DVDEC(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DVDEC))
|
||||
#define GST_IS_DVDEC_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DVDEC))
|
||||
|
||||
|
||||
typedef struct _GstDVDec GstDVDec;
|
||||
typedef struct _GstDVDecClass GstDVDecClass;
|
||||
|
||||
#define GST_TYPE_DVDEC (gst_dvdec_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstDVDec, gst_dvdec, GST, DVDEC, GstElement)
|
||||
|
||||
struct _GstDVDec {
|
||||
GstElement element;
|
||||
|
@ -84,14 +70,6 @@ struct _GstDVDec {
|
|||
gboolean need_segment;
|
||||
};
|
||||
|
||||
struct _GstDVDecClass {
|
||||
GstElementClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gst_dvdec_get_type (void);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
|
|
|
@ -27,24 +27,11 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_DVDEMUX \
|
||||
(gst_dvdemux_get_type())
|
||||
#define GST_DVDEMUX(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DVDEMUX,GstDVDemux))
|
||||
#define GST_DVDEMUX_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DVDEMUX,GstDVDemuxClass))
|
||||
#define GST_IS_DVDEMUX(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DVDEMUX))
|
||||
#define GST_IS_DVDEMUX_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DVDEMUX))
|
||||
|
||||
|
||||
typedef struct _GstDVDemux GstDVDemux;
|
||||
typedef struct _GstDVDemuxClass GstDVDemuxClass;
|
||||
#define GST_TYPE_DVDEMUX (gst_dvdemux_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstDVDemux, gst_dvdemux, GST, DVDEMUX, GstElement)
|
||||
|
||||
typedef gboolean (*GstDVDemuxSeekHandler) (GstDVDemux *demux, GstPad * pad, GstEvent * event);
|
||||
|
||||
|
||||
struct _GstDVDemux {
|
||||
GstElement element;
|
||||
|
||||
|
@ -91,12 +78,6 @@ struct _GstDVDemux {
|
|||
gint16 *audio_buffers[4];
|
||||
};
|
||||
|
||||
struct _GstDVDemuxClass {
|
||||
GstElementClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_dvdemux_get_type (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_DVDEMUX_H__ */
|
||||
|
|
Loading…
Reference in a new issue