mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
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:
parent
ea35de9914
commit
7fb17b1a34
4 changed files with 2 additions and 35 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue