encoder: fix subclassing process.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Dec 2013 10:54:40 +0000 (11:54 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Dec 2013 18:14:38 +0000 (19:14 +0100)
commit8ecc35ecf203397d35c402083893f934345c99ff
treee6b8e68860b97eaffab62b0b7d7a78feef4eadd9
parent0fb7c605080e926a4ff3a7b01337281d968148b5
encoder: fix subclassing process.

Fix the GstVaapiEncoderClass parent class type. Make sure to validate
subclass hooks as early as possible, i.e. in gst_vaapi_encoder_init(),
thus avoiding useless run-time checks. Also simplify the subclass
initialization process to be less error prone.
gst-libs/gst/vaapi/gstvaapiencoder.c
gst-libs/gst/vaapi/gstvaapiencoder_h264.c
gst-libs/gst/vaapi/gstvaapiencoder_h264_priv.h
gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
gst-libs/gst/vaapi/gstvaapiencoder_mpeg2_priv.h
gst-libs/gst/vaapi/gstvaapiencoder_priv.h