mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 13:38:48 +00:00
plugin: encode: delete useless init_properties.
Also delete the get_properties function in encode class. We now use g_object_class_list_properties to get all properties for internal encoder class.
This commit is contained in:
parent
2ab5e0ef46
commit
258719e0ed
2 changed files with 0 additions and 29 deletions
|
@ -928,30 +928,6 @@ gst_vaapiencode_class_init (GstVaapiEncodeClass * klass)
|
|||
venc_class->sink_query = GST_DEBUG_FUNCPTR (gst_vaapiencode_sink_query);
|
||||
}
|
||||
|
||||
static inline GPtrArray *
|
||||
get_properties (GstVaapiEncodeClass * klass)
|
||||
{
|
||||
return klass->get_properties ? klass->get_properties () : NULL;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_vaapiencode_class_init_properties (GstVaapiEncodeClass * klass)
|
||||
{
|
||||
GObjectClass *const object_class = G_OBJECT_CLASS (klass);
|
||||
GPtrArray *const props = get_properties (klass);
|
||||
guint i;
|
||||
|
||||
if (!props)
|
||||
return FALSE;
|
||||
|
||||
for (i = 0; i < props->len; i++) {
|
||||
GstVaapiEncoderPropInfo *const prop = g_ptr_array_index (props, i);
|
||||
g_object_class_install_property (object_class, PROP_BASE + i, prop->pspec);
|
||||
}
|
||||
g_ptr_array_unref (props);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Only used by the drived class */
|
||||
void
|
||||
gst_vaapiencode_set_property_subclass (GObject * object,
|
||||
|
|
|
@ -74,7 +74,6 @@ struct _GstVaapiEncodeClass
|
|||
GstVaapiPluginBaseClass parent_class;
|
||||
|
||||
guint prop_num;
|
||||
GPtrArray * (*get_properties) (void);
|
||||
gboolean (*set_config) (GstVaapiEncode * encode);
|
||||
GstCaps * (*get_caps) (GstVaapiEncode * encode);
|
||||
GstVaapiEncoder * (*alloc_encoder) (GstVaapiEncode * encode,
|
||||
|
@ -99,10 +98,6 @@ struct _GstVaapiEncodeClass
|
|||
GType
|
||||
gst_vaapiencode_get_type (void) G_GNUC_CONST;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
gboolean
|
||||
gst_vaapiencode_class_init_properties (GstVaapiEncodeClass * encode_class);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gst_vaapiencode_set_property_subclass (GObject * object,
|
||||
|
|
Loading…
Reference in a new issue