GstVaapiObject: initialize the derived object data with init() hook.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Tue, 21 Jan 2014 13:43:57 +0000 (15:43 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jul 2014 21:38:25 +0000 (23:38 +0200)
commit502952d080f8608cca54cae7f5497cb39354da4a
treee90b5fb7ccbc1a63e6f0602b2cb720e674fcf38b
parent334a0ca8bd20181bcb66ce910c36a54886f99d56
GstVaapiObject: initialize the derived object data with init() hook.

Call the subclass .init() function in gst_vaapi_object_new(), if
needed. The default behaviour is to zero initialize the subclass
object data, then the .init() function can be used to initialize
fields to non-default values, e.g. VA object ids to VA_INVALID_ID.

Also fix the gst_vaapi_object_new() description, which was merely
copied from GstVaapiMiniObject.

https://bugzilla.gnome.org/show_bug.cgi?id=722757

[changed to always zero initialize the subclass]
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/vaapi/gstvaapiobject.c