From ea35de991444fa17899502298ece7102328e8096 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Tue, 24 Sep 2019 01:03:02 +0800 Subject: [PATCH] libs: encoder: correct encoder's ref/unref function. GstVaapiEncoder now is a standard gstobject and need to use gst_object_ref/unref functions. --- gst-libs/gst/vaapi/gstvaapiencoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.c b/gst-libs/gst/vaapi/gstvaapiencoder.c index 3e55044284..ef157e5b97 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder.c @@ -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); } /**