mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
#define GST_TYPE_DVDEC (gst_dvdec_get_type())
|
||||||
#define GST_TYPE_DVDEC \
|
G_DECLARE_FINAL_TYPE (GstDVDec, gst_dvdec, GST, DVDEC, GstElement)
|
||||||
(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;
|
|
||||||
|
|
||||||
|
|
||||||
struct _GstDVDec {
|
struct _GstDVDec {
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
@ -84,14 +70,6 @@ struct _GstDVDec {
|
||||||
gboolean need_segment;
|
gboolean need_segment;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstDVDecClass {
|
|
||||||
GstElementClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
GType gst_dvdec_get_type (void);
|
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,24 +27,11 @@
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_DVDEMUX \
|
#define GST_TYPE_DVDEMUX (gst_dvdemux_get_type())
|
||||||
(gst_dvdemux_get_type())
|
G_DECLARE_FINAL_TYPE (GstDVDemux, gst_dvdemux, GST, DVDEMUX, GstElement)
|
||||||
#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;
|
|
||||||
|
|
||||||
typedef gboolean (*GstDVDemuxSeekHandler) (GstDVDemux *demux, GstPad * pad, GstEvent * event);
|
typedef gboolean (*GstDVDemuxSeekHandler) (GstDVDemux *demux, GstPad * pad, GstEvent * event);
|
||||||
|
|
||||||
|
|
||||||
struct _GstDVDemux {
|
struct _GstDVDemux {
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
|
@ -91,12 +78,6 @@ struct _GstDVDemux {
|
||||||
gint16 *audio_buffers[4];
|
gint16 *audio_buffers[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstDVDemuxClass {
|
|
||||||
GstElementClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_dvdemux_get_type (void);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_DVDEMUX_H__ */
|
#endif /* __GST_DVDEMUX_H__ */
|
||||||
|
|
Loading…
Reference in a new issue