summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-07-12 18:24:10 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-07-22 17:23:23 +0200
commitdcb0de85328c6a4d13d88f33400c0f7dd187d97c (patch)
tree8da55bbe41f6ff2e7d33c05d4b8f975ef50a9982
parent4a9b20465234d73d0cf0239fef483abcd8b412d8 (diff)
plugins: remove common change_state() vmethod
Remove the common change_state() vmethod for all the plugins, since no one is using it.
-rw-r--r--gst/vaapi/gstvaapipluginbase.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/gst/vaapi/gstvaapipluginbase.h b/gst/vaapi/gstvaapipluginbase.h
index 4a1de465..53dd928d 100644
--- a/gst/vaapi/gstvaapipluginbase.h
+++ b/gst/vaapi/gstvaapipluginbase.h
@@ -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 >*/