libs: encoder: correct encoder's ref/unref function.

GstVaapiEncoder now is a standard gstobject and need to use
gst_object_ref/unref functions.
This commit is contained in:
He Junyan 2019-09-24 01:03:02 +08:00
parent 73ac0c4e50
commit ea35de9914

View file

@ -233,7 +233,7 @@ gst_vaapi_encoder_ensure_param_roi_regions (GstVaapiEncoder * encoder,
GstVaapiEncoder *
gst_vaapi_encoder_ref (GstVaapiEncoder * encoder)
{
return gst_vaapi_object_ref (encoder);
return gst_object_ref (encoder);
}
/**
@ -246,7 +246,7 @@ gst_vaapi_encoder_ref (GstVaapiEncoder * encoder)
void
gst_vaapi_encoder_unref (GstVaapiEncoder * encoder)
{
gst_vaapi_object_unref (encoder);
gst_object_unref (encoder);
}
/**