libs: encoder: dummy context for get_surface_formats()
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 6 Apr 2017 10:28:51 +0000 (12:28 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 6 Apr 2017 20:00:05 +0000 (22:00 +0200)
commit9aa63e4595105ac035663a22360d75c52b74b4b8
treeefe8ad6dff66050f25a5b03c7c411148e757a83e
parent31d326c9ee12e6c8da7b765c9968ac52ac29239f
libs: encoder: dummy context for get_surface_formats()

Instead of creating (if it doesn't exist, yet) the encoder's context
the method gst_vaapi_encoder_get_surface_formats() now it creates
dummy contexts, unless the encoder has it already created.

The purpose of this is to avoid setting a encoder's context with a
wrong profile.

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