plugins: fix display type comparison in gst_vaapi_create_display().
authorEmilio López <emilio@elopez.com.ar>
Thu, 18 Jul 2013 05:54:54 +0000 (02:54 -0300)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 18 Jul 2013 06:41:28 +0000 (08:41 +0200)
commitb868c6d88814bf491174f494d8c79298cf97a3d8
tree17cf53c79ac389b641760b90108c0bbe514d428a
parent07e890e81828d01806dad9d01d9e1d9cea690e8d
plugins: fix display type comparison in gst_vaapi_create_display().

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 <emilio@elopez.com.ar>
gst/vaapi/gstvaapipluginutil.c