plugin: honour negotiated format
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 29 Mar 2016 11:28:27 +0000 (13:28 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 18 Apr 2016 16:28:43 +0000 (18:28 +0200)
commitb41db95c4efd28d4a2a7937cc0e84e854c0e4d4f
tree733013b503af207684cd7f35c5cfd2dbd6123873
parentce6275020e7c1ff7af646857933f93726b73053a
plugin: honour negotiated format

Instead of setting the requested format by the caller, the function
gst_vaapi_find_preferred_caps_feature() now returns, in the output parameter,
the negotiated format.

A new helper function was added: gst_vaapi_find_preferred_format(), which,
given the format list from the negotiated caps, will choose the best one, if
possible, given the native format.

https://bugzilla.gnome.org/show_bug.cgi?id=765223
gst/vaapi/gstvaapipluginutil.c