From 4a9b20465234d73d0cf0239fef483abcd8b412d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 12 Jul 2016 20:38:07 +0200 Subject: [PATCH] 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. --- gst/vaapi/gstvaapidecode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index e6f6687520..af2a97c10c 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 , "