mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
plugins: remove common change_state() vmethod
Remove the common change_state() vmethod for all the plugins, since no one is using it.
This commit is contained in:
parent
4a9b204652
commit
dcb0de8532
1 changed files with 0 additions and 29 deletions
|
@ -98,10 +98,6 @@ typedef struct _GstVaapiPluginBaseClass GstVaapiPluginBaseClass;
|
|||
(gst_vaapi_display_replace(&GST_VAAPI_PLUGIN_BASE_DISPLAY(plugin), \
|
||||
(new_display)))
|
||||
|
||||
#define GST_VAAPI_PLUGIN_BASE_DEFINE_VMETHODS(parent_class) \
|
||||
GST_VAAPI_PLUGIN_BASE_DEFINE_SET_CONTEXT(parent_class) \
|
||||
GST_VAAPI_PLUGIN_BASE_DEFINE_CHANGE_STATE(parent_class)
|
||||
|
||||
#define GST_VAAPI_PLUGIN_BASE_DEFINE_SET_CONTEXT(parent_class) \
|
||||
static void \
|
||||
gst_vaapi_base_set_context (GstElement * element, GstContext * context) \
|
||||
|
@ -112,31 +108,6 @@ typedef struct _GstVaapiPluginBaseClass GstVaapiPluginBaseClass;
|
|||
GST_ELEMENT_CLASS (parent_class)->set_context (element, context); \
|
||||
}
|
||||
|
||||
#define GST_VAAPI_PLUGIN_BASE_DEFINE_CHANGE_STATE(parent_class) \
|
||||
static GstStateChangeReturn \
|
||||
gst_vaapi_base_change_state (GstElement * element, \
|
||||
GstStateChange transition) \
|
||||
{ \
|
||||
GstStateChangeReturn ret; \
|
||||
\
|
||||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, \
|
||||
transition); \
|
||||
if (ret == GST_STATE_CHANGE_FAILURE) \
|
||||
return ret; \
|
||||
\
|
||||
switch (transition) { \
|
||||
case GST_STATE_CHANGE_NULL_TO_READY:{ \
|
||||
GstVaapiPluginBase *const plugin = GST_VAAPI_PLUGIN_BASE (element); \
|
||||
if (!gst_vaapi_plugin_base_driver_is_whitelisted (plugin)) \
|
||||
ret = GST_STATE_CHANGE_FAILURE; \
|
||||
break; \
|
||||
} \
|
||||
default: \
|
||||
break; \
|
||||
} \
|
||||
return ret; \
|
||||
}
|
||||
|
||||
struct _GstVaapiPluginBase
|
||||
{
|
||||
/*< private >*/
|
||||
|
|
Loading…
Reference in a new issue