summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-07-12 20:38:07 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-07-22 17:23:23 +0200
commit4a9b20465234d73d0cf0239fef483abcd8b412d8 (patch)
tree84032e290ab9e57a6941d75a0c0434ef76b58c39
parentc60312c78f9b8e7e28b84968d7ee7f95aa199a8f (diff)
vaapidecode: remove change_state() vmethod
Since the driver checkup is done at registering, there is no need to do it when changing the element state from NULL to READY. This patch remove this vmethod from vaapidecode.
-rw-r--r--gst/vaapi/gstvaapidecode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c
index e6f66875..af2a97c1 100644
--- a/gst/vaapi/gstvaapidecode.c
+++ b/gst/vaapi/gstvaapidecode.c
@@ -160,7 +160,7 @@ static const GstVaapiDecoderMap vaapi_decode_map[] = {
};
static GstElementClass *parent_class = NULL;
-GST_VAAPI_PLUGIN_BASE_DEFINE_VMETHODS (parent_class);
+GST_VAAPI_PLUGIN_BASE_DEFINE_SET_CONTEXT (parent_class);
static gboolean gst_vaapidecode_update_sink_caps (GstVaapiDecode * decode,
GstCaps * caps);
@@ -1306,7 +1306,6 @@ gst_vaapidecode_class_init (GstVaapiDecodeClass * klass)
}
element_class->set_context = gst_vaapi_base_set_context;
- element_class->change_state = GST_DEBUG_FUNCPTR (gst_vaapi_base_change_state);
gst_element_class_set_static_metadata (element_class, longname,
"Codec/Decoder/Video", GST_PLUGIN_DESC,
"Gwenole Beauchesne <gwenole.beauchesne@intel.com>, "