plugins: remove precondition for decide_allocation()

There's no need to check for the display in the plugin object when
decide_allocation() vmethod is called, because the display will created or
re-created along the method execution.
This commit is contained in:
Víctor Manuel Jáquez Leal 2016-06-02 15:41:22 +02:00
parent 4c99077af4
commit f189af8dc5

View file

@ -790,8 +790,6 @@ gst_vaapi_plugin_base_decide_allocation (GstVaapiPluginBase * plugin,
guint idx;
#endif
g_return_val_if_fail (plugin->display != NULL, FALSE);
gst_query_parse_allocation (query, &caps, NULL);
if (!caps)
goto error_no_caps;