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.
This commit is contained in:
Víctor Manuel Jáquez Leal 2016-07-12 20:38:07 +02:00
parent c60312c78f
commit 4a9b204652

View file

@ -160,7 +160,7 @@ static const GstVaapiDecoderMap vaapi_decode_map[] = {
}; };
static GstElementClass *parent_class = NULL; 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, static gboolean gst_vaapidecode_update_sink_caps (GstVaapiDecode * decode,
GstCaps * caps); GstCaps * caps);
@ -1306,7 +1306,6 @@ gst_vaapidecode_class_init (GstVaapiDecodeClass * klass)
} }
element_class->set_context = gst_vaapi_base_set_context; 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, gst_element_class_set_static_metadata (element_class, longname,
"Codec/Decoder/Video", GST_PLUGIN_DESC, "Codec/Decoder/Video", GST_PLUGIN_DESC,
"Gwenole Beauchesne <gwenole.beauchesne@intel.com>, " "Gwenole Beauchesne <gwenole.beauchesne@intel.com>, "