vaapiencode: make GstVaapiEncode an abstract type.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 8 Jan 2014 17:56:23 +0000 (18:56 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 13 Jan 2014 16:31:55 +0000 (17:31 +0100)
Make base GstVaapiEncode class an abstract type so that we cannot
create an instance from it without going through any of the codec
specific derived class.

gst/vaapi/gstvaapiencode.c

index 2276b11..f5b0606 100644 (file)
@@ -41,7 +41,7 @@
 GST_DEBUG_CATEGORY_STATIC (gst_vaapiencode_debug);
 #define GST_CAT_DEFAULT gst_vaapiencode_debug
 
-G_DEFINE_TYPE_WITH_CODE (GstVaapiEncode,
+G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstVaapiEncode,
     gst_vaapiencode, GST_TYPE_VIDEO_ENCODER,
     GST_VAAPI_PLUGIN_BASE_INIT_INTERFACES);