libs: encoder: delete useless gst_vaapi_encoder_new func.
authorHe Junyan <junyan.he@hotmail.com>
Thu, 29 Aug 2019 06:38:49 +0000 (14:38 +0800)
committerHe Junyan <junyan.he@hotmail.com>
Fri, 30 Aug 2019 05:06:50 +0000 (13:06 +0800)
GstVaapiEncoder is a abstract gobject and never be created directly.

gst-libs/gst/vaapi/gstvaapiencoder.c
gst-libs/gst/vaapi/gstvaapiencoder_priv.h

index 7451a24..4c559de 100644 (file)
@@ -1621,14 +1621,6 @@ gst_vaapi_encoder_finalize (GObject * object)
   G_OBJECT_CLASS (gst_vaapi_encoder_parent_class)->finalize (object);
 }
 
-/* Helper function to create new GstVaapiEncoder instances (internal) */
-GstVaapiEncoder *
-gst_vaapi_encoder_new (const GstVaapiEncoderClass * klass,
-    GstVaapiDisplay * display)
-{
-  return NULL;
-}
-
 static void
 encoder_set_property (GObject * object, guint prop_id,
     const GValue * value, GParamSpec * pspec)
index 170cede..c2ac510 100644 (file)
@@ -392,11 +392,6 @@ struct _GstVaapiEncoderClass
     GST_VAAPI_ENCODER_CLASS_HOOK (codec, flush)
 
 G_GNUC_INTERNAL
-GstVaapiEncoder *
-gst_vaapi_encoder_new (const GstVaapiEncoderClass * klass,
-    GstVaapiDisplay * display);
-
-G_GNUC_INTERNAL
 GstVaapiSurfaceProxy *
 gst_vaapi_encoder_create_surface (GstVaapiEncoder *
     encoder);