plugins: create a GL context on certain conditions
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 26 Jan 2017 11:02:56 +0000 (12:02 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 27 Jan 2017 10:27:35 +0000 (11:27 +0100)
commit0968ce468de9e927593be0c2f8686017844eacf1
treea23bf2a2b4d300af774cb862d15f94a6f7225642
parent43d4f0bfb5995faea0d49164e31b2a632ac6408e
plugins: create a GL context on certain conditions

If a GstVaapiDisplay is not found in the GStreamer context sharing,
then VAAPI elements look for a local GstGLContext in gst context
sharing mechanism ('gst.gl.local.context').

If this GstGLContext not found either then, only the VAAPI decoders
and the VAAPI post-processor, will try to instantiate a new
GstGLContext.

If a valid GstGLContext is received, then a new GstVaapiDisplay will
be instantiated with the platform, API and windowing specified by the
instantiated GstGLContext.

Original-Patch-By: Matt Fischer <matt.fischer@garmin.com>
https://bugzilla.gnome.org/show_bug.cgi?id=777409
gst/vaapi/gstvaapipluginbase.c
gst/vaapi/gstvaapipluginbase.h
gst/vaapi/gstvaapipluginutil.c