summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-09-23 19:52:20 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-09-23 19:52:20 +0200
commit7fb17b1a34da42b7f55e35a4827b5b6729c66761 (patch)
tree9610db334c89f7f2b88911dfcd0ec8f561bb0bcc /tests
parentea35de991444fa17899502298ece7102328e8096 (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/simple-encoder.c2
-rw-r--r--tests/test-fei-enc-in.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/simple-encoder.c b/tests/simple-encoder.c
index c94f3b5f..97857731 100644
--- a/tests/simple-encoder.c
+++ b/tests/simple-encoder.c
@@ -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)
diff --git a/tests/test-fei-enc-in.c b/tests/test-fei-enc-in.c
index d64a9468..9f79c166 100644
--- a/tests/test-fei-enc-in.c
+++ b/tests/test-fei-enc-in.c
@@ -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)