mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
videorate: Use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
f57be9dcc3
commit
761bb9b9ff
1 changed files with 4 additions and 19 deletions
|
@ -24,18 +24,10 @@
|
|||
#include <gst/base/gstbasetransform.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
#define GST_TYPE_VIDEO_RATE \
|
||||
(gst_video_rate_get_type())
|
||||
#define GST_VIDEO_RATE(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_RATE,GstVideoRate))
|
||||
#define GST_VIDEO_RATE_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_RATE,GstVideoRateClass))
|
||||
#define GST_IS_VIDEO_RATE(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_RATE))
|
||||
#define GST_IS_VIDEO_RATE_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_RATE))
|
||||
typedef struct _GstVideoRate GstVideoRate;
|
||||
typedef struct _GstVideoRateClass GstVideoRateClass;
|
||||
|
||||
#define GST_TYPE_VIDEO_RATE (gst_video_rate_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstVideoRate, gst_video_rate, GST, VIDEO_RATE,
|
||||
GstBaseTransform)
|
||||
|
||||
/**
|
||||
* GstVideoRate:
|
||||
|
@ -82,12 +74,5 @@ struct _GstVideoRate
|
|||
gdouble rate;
|
||||
};
|
||||
|
||||
struct _GstVideoRateClass
|
||||
{
|
||||
GstBaseTransformClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_video_rate_get_type (void);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* __GST_VIDEO_RATE_H__ */
|
||||
|
|
Loading…
Reference in a new issue