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 2276b11765e1d4f02965ae7dd36250f7de8b642a..f5b0606a7dcc23a6cfbb6571c4bd848253b7a0e3 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);