GstVaapiObject: make gst_vaapi_object_new() more robust.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 22 Jan 2014 06:20:59 +0000 (08:20 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jul 2014 21:50:11 +0000 (23:50 +0200)
commit99bf1b1f9874f09a5c93f125f8f9a28faa2025a3
treedff70ada8594c2cdc19489e49253e11c8cb4bbdc
parent502952d080f8608cca54cae7f5497cb39354da4a
GstVaapiObject: make gst_vaapi_object_new() more robust.

Forbid GstVaapiObject to be created without an associated klass spec.
It is mandatory that the subclass implements an adequate .finalize()
hook, so it shall provide a valid GstVaapiObjectClass.

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

[made non-NULL klass argument to gst_vaapi_object_new() a requirement]
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/vaapi/gstvaapiobject.c