Instead of setting the display to the plugin directly after its creation, do
it through the gstreamer's context mechanism, avoiding double assignations.
Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=757598
return FALSE;
gst_vaapi_video_context_propagate (element, display);
- GST_VAAPI_PLUGIN_BASE_DISPLAY_REPLACE (plugin, display);
gst_vaapi_display_unref (display);
return TRUE;
}
GstMessage *msg;
context = gst_vaapi_video_context_new_with_display (display, FALSE);
+ gst_element_set_context (element, context);
_init_context_debug ();
GST_CAT_INFO_OBJECT (GST_CAT_CONTEXT, element,