mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
tests: the navigation interface isn't GstImplementsInterface-wrapped
This commit is contained in:
parent
114d1525ca
commit
dd97ccc293
1 changed files with 0 additions and 24 deletions
|
@ -54,7 +54,6 @@ struct TestElementClass
|
||||||
GType test_element_get_type (void);
|
GType test_element_get_type (void);
|
||||||
|
|
||||||
static void init_interface (GType type);
|
static void init_interface (GType type);
|
||||||
static void gst_implements_interface_init (GstImplementsInterfaceClass * klass);
|
|
||||||
static void nav_send_event (GstNavigation * navigation,
|
static void nav_send_event (GstNavigation * navigation,
|
||||||
GstStructure * structure);
|
GstStructure * structure);
|
||||||
|
|
||||||
|
@ -75,14 +74,7 @@ init_interface (GType type)
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
static const GInterfaceInfo implements_iface_info = {
|
|
||||||
(GInterfaceInitFunc) gst_implements_interface_init,
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
};
|
|
||||||
|
|
||||||
g_type_add_interface_static (type, GST_TYPE_IMPLEMENTS_INTERFACE,
|
|
||||||
&implements_iface_info);
|
|
||||||
g_type_add_interface_static (type, GST_TYPE_NAVIGATION,
|
g_type_add_interface_static (type, GST_TYPE_NAVIGATION,
|
||||||
&navigation_iface_info);
|
&navigation_iface_info);
|
||||||
}
|
}
|
||||||
|
@ -97,22 +89,6 @@ test_element_class_init (TestElementClass * klass)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
test_element_interface_supported (GstImplementsInterface * ifacE,
|
|
||||||
GType interface_type)
|
|
||||||
{
|
|
||||||
if (interface_type == GST_TYPE_NAVIGATION)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_implements_interface_init (GstImplementsInterfaceClass * klass)
|
|
||||||
{
|
|
||||||
klass->supported = test_element_interface_supported;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_element_init (TestElement * this, TestElementClass * klass)
|
test_element_init (TestElement * this, TestElementClass * klass)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue