mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
videoorientation: Use G_DEFINE_INTERFACE instead of a manually written get_type()
https://bugzilla.gnome.org/show_bug.cgi?id=768687
This commit is contained in:
parent
02a88077fc
commit
9f594d1562
1 changed files with 3 additions and 28 deletions
|
@ -39,36 +39,11 @@
|
|||
/* FIXME 0.11: check if we need to add API for sometimes-supportedness
|
||||
* (aka making up for GstImplementsInterface removal) (probably yes) */
|
||||
|
||||
static void gst_video_orientation_iface_init (GstVideoOrientationInterface *
|
||||
iface);
|
||||
|
||||
GType
|
||||
gst_video_orientation_get_type (void)
|
||||
{
|
||||
static GType gst_video_orientation_type = 0;
|
||||
|
||||
if (!gst_video_orientation_type) {
|
||||
static const GTypeInfo gst_video_orientation_info = {
|
||||
sizeof (GstVideoOrientationInterface),
|
||||
(GBaseInitFunc) gst_video_orientation_iface_init,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
};
|
||||
|
||||
gst_video_orientation_type = g_type_register_static (G_TYPE_INTERFACE,
|
||||
"GstVideoOrientation", &gst_video_orientation_info, 0);
|
||||
}
|
||||
|
||||
return gst_video_orientation_type;
|
||||
}
|
||||
G_DEFINE_INTERFACE (GstVideoOrientation, gst_video_orientation, 0)
|
||||
|
||||
static void
|
||||
gst_video_orientation_iface_init (GstVideoOrientationInterface * iface)
|
||||
gst_video_orientation_default_init (GstVideoOrientationInterface *
|
||||
iface)
|
||||
{
|
||||
/* default virtual functions */
|
||||
|
||||
|
|
Loading…
Reference in a new issue