From b868c6d88814bf491174f494d8c79298cf97a3d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Emilio=20L=C3=B3pez?= Date: Thu, 18 Jul 2013 02:54:54 -0300 Subject: [PATCH] plugins: fix display type comparison in gst_vaapi_create_display(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit After the code got moved to create the gst_vaapi_create_display() helper, this comparison was not updated to dereference the newly-created pointer, so the code was comparing the pointer itself to the type, and therefore failing to retrieve the VA display. This fixes the following error (and gets gst-vaapi decoding again): ERROR vaapidecode gstvaapidecode.c:807:gst_vaapidecode_ensure_allowed_caps: failed to retrieve VA display https://bugzilla.gnome.org/show_bug.cgi?id=704410 Signed-off-by: Emilio López --- gst/vaapi/gstvaapipluginutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c index a1dbad8..ac48d01 100644 --- a/gst/vaapi/gstvaapipluginutil.c +++ b/gst/vaapi/gstvaapipluginutil.c @@ -103,7 +103,7 @@ gst_vaapi_create_display(GstVaapiDisplayType *display_type) break; } - if (display_type != GST_VAAPI_DISPLAY_TYPE_ANY) + if (*display_type != GST_VAAPI_DISPLAY_TYPE_ANY) break; } return display; -- 2.7.4