libs: context: fix wrong counter of the array of attributes
authorHyunjun Ko <zzoon@igalia.com>
Wed, 13 Sep 2017 06:44:32 +0000 (15:44 +0900)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 13 Sep 2017 08:56:16 +0000 (10:56 +0200)
commit9875c0d84e5c95695d0566ca44bbbc8b42f5a146
treefc5ba40f47f4f71efec776c04e37afac5667e35a
parent5333155e27ca8e985dcfaddb6c561c4404d41f5c
libs: context: fix wrong counter of the array of attributes

The counter value passed to vaCreateConfig is always +1.

This is a regression caused by commit e42ec3ad.

The present patch fixes wrong counting of the array of attributes.

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