summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2019-12-18 12:57:01 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2019-12-20 05:01:07 +0000
commitd56824c05cc3245143dab4fb716902158ec6b7c6 (patch)
treecd7556f2f0e4503900a624c5c71cb59769a89333 /tests
parenta6289308ee6f992fe6530cae3c6592a7a0b12ba3 (diff)
downloadgstreamer-vaapi-d56824c05cc3245143dab4fb716902158ec6b7c6.tar.gz
libs: image: port to GstMiniObject base class
GstVaapiMiniObject and GstVaapiObject are deprecrated. This is the first step to remove them, by porting GstVaapiImage as a GstMiniObject. Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/internal/image.c6
-rw-r--r--tests/internal/simple-encoder.c2
-rw-r--r--tests/internal/test-fei-enc-in.c2
-rw-r--r--tests/internal/test-filter.c4
-rw-r--r--tests/internal/test-windows.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/tests/internal/image.c b/tests/internal/image.c
index 13044710..aba0b145 100644
--- a/tests/internal/image.c
+++ b/tests/internal/image.c
@@ -87,7 +87,7 @@ image_generate_full (GstVaapiDisplay * display,
return image;
error:
- gst_vaapi_object_unref (image);
+ gst_vaapi_image_unref (image);
return NULL;
}
@@ -321,7 +321,7 @@ image_draw_rectangle (GstVaapiImage * image,
if (height > image_height - y)
height = image_height - y;
- display = gst_vaapi_object_get_display (GST_VAAPI_OBJECT (image));
+ display = gst_vaapi_image_get_display (image);
if (!display)
return FALSE;
@@ -374,7 +374,7 @@ image_upload (GstVaapiImage * image, GstVaapiSurface * surface)
surface_image = gst_vaapi_surface_derive_image (surface);
if (surface_image) {
success = gst_vaapi_image_copy (surface_image, image);
- gst_vaapi_object_unref (surface_image);
+ gst_vaapi_image_unref (surface_image);
if (success)
return TRUE;
}
diff --git a/tests/internal/simple-encoder.c b/tests/internal/simple-encoder.c
index 97857731..90b778e3 100644
--- a/tests/internal/simple-encoder.c
+++ b/tests/internal/simple-encoder.c
@@ -456,7 +456,7 @@ app_run (App * app)
ret = EXIT_SUCCESS;
gst_vaapi_video_pool_replace (&pool, NULL);
- gst_vaapi_object_unref (image);
+ gst_vaapi_image_unref (image);
return ret;
}
diff --git a/tests/internal/test-fei-enc-in.c b/tests/internal/test-fei-enc-in.c
index 9f79c166..ad67909e 100644
--- a/tests/internal/test-fei-enc-in.c
+++ b/tests/internal/test-fei-enc-in.c
@@ -638,7 +638,7 @@ app_run (App * app)
ret = EXIT_SUCCESS;
gst_vaapi_video_pool_replace (&pool, NULL);
- gst_vaapi_object_unref (image);
+ gst_vaapi_image_unref (image);
return ret;
}
diff --git a/tests/internal/test-filter.c b/tests/internal/test-filter.c
index ab57775a..926fe7f5 100644
--- a/tests/internal/test-filter.c
+++ b/tests/internal/test-filter.c
@@ -117,7 +117,7 @@ create_test_surface (GstVaapiDisplay * display, guint width, guint height,
if (!image_upload (image, surface))
goto error_upload_image;
- gst_vaapi_object_unref (image);
+ gst_vaapi_image_unref (image);
return surface;
/* ERRORS */
@@ -139,7 +139,7 @@ error_upload_image:
goto error_cleanup;
error_cleanup:
if (image)
- gst_vaapi_object_unref (image);
+ gst_vaapi_image_unref (image);
if (surface)
gst_vaapi_object_unref (surface);
if (error_ptr)
diff --git a/tests/internal/test-windows.c b/tests/internal/test-windows.c
index 595be3fe..5b185ecb 100644
--- a/tests/internal/test-windows.c
+++ b/tests/internal/test-windows.c
@@ -89,7 +89,7 @@ create_test_surface (GstVaapiDisplay * display, guint width, guint height)
if (!gst_vaapi_surface_sync (surface))
g_error ("could not complete image upload");
- gst_vaapi_object_unref (image);
+ gst_vaapi_image_unref (image);
return surface;
}