plugins: check if display is set in sync
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 30 Oct 2015 11:27:16 +0000 (12:27 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 9 Nov 2015 15:18:19 +0000 (16:18 +0100)
commitef3fb4afaf38fbfd52e5b8b7bc7008b3f0e1cdaa
tree2a18ed883663e48d7ef27d795bbeb9ab844c85e4
parentb45089f0f72e5a5bd56beeeeeedc085e9b59e6b7
plugins: check if display is set in sync

Since the context messages are sync'ed, the display assignation happens in the
same thread, hence we can know if the display was found or not as soon we call
for it.

In order to take advantage of it, gst_vaapi_video_context_prepare() receives,
as a new parameter, the address of the plugin's display, and reports back if
the display was found and set.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=757598
gst/vaapi/gstvaapipluginutil.c
gst/vaapi/gstvaapivideocontext.c
gst/vaapi/gstvaapivideocontext.h