From b45089f0f72e5a5bd56beeeeeedc085e9b59e6b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 30 Oct 2015 12:33:48 +0100 Subject: [PATCH] plugins: set display through context MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 https://bugzilla.gnome.org/show_bug.cgi?id=757598 --- gst/vaapi/gstvaapipluginutil.c | 1 - gst/vaapi/gstvaapivideocontext.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c index 2071adc215..f5d3fe6da0 100644 --- a/gst/vaapi/gstvaapipluginutil.c +++ b/gst/vaapi/gstvaapipluginutil.c @@ -250,7 +250,6 @@ gst_vaapi_ensure_display (GstElement * element, GstVaapiDisplayType type) return FALSE; gst_vaapi_video_context_propagate (element, display); - GST_VAAPI_PLUGIN_BASE_DISPLAY_REPLACE (plugin, display); gst_vaapi_display_unref (display); return TRUE; } diff --git a/gst/vaapi/gstvaapivideocontext.c b/gst/vaapi/gstvaapivideocontext.c index 36737a0b2d..62bd9d43f2 100644 --- a/gst/vaapi/gstvaapivideocontext.c +++ b/gst/vaapi/gstvaapivideocontext.c @@ -205,6 +205,7 @@ gst_vaapi_video_context_propagate (GstElement * element, 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, -- 2.34.1