gst: use G_DECLARE_FINAL_TYPE for all classes

This commit is contained in:
George Kiagiadakis 2024-06-01 18:01:42 +03:00 committed by Wim Taymans
parent 0bde0ebad8
commit 8da35df0bf
5 changed files with 16 additions and 115 deletions

View file

@ -13,21 +13,8 @@
G_BEGIN_DECLS
#define GST_TYPE_PIPEWIRE_CLOCK \
(gst_pipewire_clock_get_type())
#define GST_PIPEWIRE_CLOCK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PIPEWIRE_CLOCK,GstPipeWireClock))
#define GST_PIPEWIRE_CLOCK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PIPEWIRE_CLOCK,GstPipeWireClockClass))
#define GST_IS_PIPEWIRE_CLOCK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PIPEWIRE_CLOCK))
#define GST_IS_PIPEWIRE_CLOCK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PIPEWIRE_CLOCK))
#define GST_PIPEWIRE_CLOCK_GET_CLASS(klass) \
(G_TYPE_INSTANCE_GET_CLASS ((klass), GST_TYPE_PIPEWIRE_CLOCK, GstPipeWireClockClass))
typedef struct _GstPipeWireClock GstPipeWireClock;
typedef struct _GstPipeWireClockClass GstPipeWireClockClass;
#define GST_TYPE_PIPEWIRE_CLOCK (gst_pipewire_clock_get_type())
G_DECLARE_FINAL_TYPE (GstPipeWireClock, gst_pipewire_clock, GST, PIPEWIRE_CLOCK, GstSystemClock)
struct _GstPipeWireClock {
GstSystemClock parent;
@ -38,12 +25,6 @@ struct _GstPipeWireClock {
GstClockTimeDiff time_offset;
};
struct _GstPipeWireClockClass {
GstSystemClockClass parent_class;
};
GType gst_pipewire_clock_get_type (void);
GstClock * gst_pipewire_clock_new (GstPipeWireStream *stream,
GstClockTime last_time);
void gst_pipewire_clock_reset (GstPipeWireClock *clock,