libs: encoder: remove gst_vaapi_encoder_{ref,unref}()

Since GstVaapiEncoder is a descendant of of GstObject, there is no
need to keep a custom ref()/unref() methods. This patch deletes them.
This commit is contained in:
Víctor Manuel Jáquez Leal 2019-09-23 19:52:20 +02:00
parent ea35de9914
commit 7fb17b1a34
4 changed files with 2 additions and 35 deletions

View file

@ -222,33 +222,6 @@ gst_vaapi_encoder_ensure_param_roi_regions (GstVaapiEncoder * encoder,
return TRUE;
}
/**
* gst_vaapi_encoder_ref:
* @encoder: a #GstVaapiEncoder
*
* Atomically increases the reference count of the given @encoder by one.
*
* Returns: The same @encoder argument
*/
GstVaapiEncoder *
gst_vaapi_encoder_ref (GstVaapiEncoder * encoder)
{
return gst_object_ref (encoder);
}
/**
* gst_vaapi_encoder_unref:
* @encoder: a #GstVaapiEncoder
*
* Atomically decreases the reference count of the @encoder by one. If
* the reference count reaches zero, the encoder will be free'd.
*/
void
gst_vaapi_encoder_unref (GstVaapiEncoder * encoder)
{
gst_object_unref (encoder);
}
/**
* gst_vaapi_encoder_replace:
* @old_encoder_ptr: a pointer to a #GstVaapiEncoder

View file

@ -131,12 +131,6 @@ gst_vaapi_encoder_tune_get_type (void) G_GNUC_CONST;
GType
gst_vaapi_encoder_mbbrc_get_type (void) G_GNUC_CONST;
GstVaapiEncoder *
gst_vaapi_encoder_ref (GstVaapiEncoder * encoder);
void
gst_vaapi_encoder_unref (GstVaapiEncoder * encoder);
void
gst_vaapi_encoder_replace (GstVaapiEncoder ** old_encoder_ptr,
GstVaapiEncoder * new_encoder);

View file

@ -299,7 +299,7 @@ app_free (App * app)
if (app->encoder) {
gst_vaapi_encoder_flush (app->encoder);
gst_vaapi_encoder_unref (app->encoder);
gst_object_unref (app->encoder);
}
if (app->display)

View file

@ -343,7 +343,7 @@ app_free (App * app)
if (app->encoder) {
gst_vaapi_encoder_flush (app->encoder);
gst_vaapi_encoder_unref (app->encoder);
gst_object_unref (app->encoder);
}
if (app->display)