libs: context: query surface format before context to create surface.
authorWangfei <fei.w.wang@intel.com>
Mon, 1 Oct 2018 01:26:05 +0000 (09:26 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 10 Oct 2018 18:13:01 +0000 (20:13 +0200)
commit82872f42344506c4f5e31c0a485a68a5f40f98cf
treef6fc5acc13c9f753d9a832f7b610a2308df5c0e3
parentbcd63f8021158025ec56affc94aa8279daed02c8
libs: context: query surface format before context to create surface.

Before using context to create surface, the supported surface format
should be checked first.

https://bugzilla.gnome.org/show_bug.cgi?id=797222
gst-libs/gst/vaapi/gstvaapicontext.c
gst-libs/gst/vaapi/gstvaapisurface.c
gst-libs/gst/vaapi/gstvaapisurface.h