libs: utils: log warn if display fail
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 2 Oct 2017 16:53:21 +0000 (18:53 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 3 Oct 2017 11:37:23 +0000 (13:37 +0200)
commitc7d712a93247d07c32591d2006cb8f1185a0b1c0
tree066026214b3e1c69e93e91c3e9ea599cc9a3a924
parent68aca503ce6f1fbff4066df7c00cf3d6aef16e42
libs: utils: log warn if display fail

gstreamer-vaapi initializes the display by trial-and-error, thus
logging an error message if the display initialisation fails the user
may be weary of the error message in the screen, if using VA-API 1.0

This commit set the VA error log handler to GStreamer warning level
while calling vaInitialize() and set it to error after that.

https://bugzilla.gnome.org/show_bug.cgi?id=783169
gst-libs/gst/vaapi/gstvaapiutils.c