summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/internal/image.c2
-rw-r--r--tests/internal/test-filter.c6
-rw-r--r--tests/internal/test-surfaces.c7
-rw-r--r--tests/internal/test-windows.c6
4 files changed, 11 insertions, 10 deletions
diff --git a/tests/internal/image.c b/tests/internal/image.c
index aba0b145..30256cb7 100644
--- a/tests/internal/image.c
+++ b/tests/internal/image.c
@@ -360,7 +360,7 @@ image_upload (GstVaapiImage * image, GstVaapiSurface * surface)
GstVaapiSubpicture *subpicture;
gboolean success;
- display = gst_vaapi_object_get_display (GST_VAAPI_OBJECT (surface));
+ display = gst_vaapi_surface_get_display (surface);
if (!display)
return FALSE;
diff --git a/tests/internal/test-filter.c b/tests/internal/test-filter.c
index 926fe7f5..fcdd95c2 100644
--- a/tests/internal/test-filter.c
+++ b/tests/internal/test-filter.c
@@ -141,7 +141,7 @@ error_cleanup:
if (image)
gst_vaapi_image_unref (image);
if (surface)
- gst_vaapi_object_unref (surface);
+ gst_vaapi_surface_unref (surface);
if (error_ptr)
*error_ptr = error;
else
@@ -441,8 +441,8 @@ main (int argc, char *argv[])
pause ();
gst_object_unref (filter);
- gst_vaapi_object_unref (dst_surface);
- gst_vaapi_object_unref (src_surface);
+ gst_vaapi_surface_unref (dst_surface);
+ gst_vaapi_surface_unref (src_surface);
gst_object_unref (window);
gst_object_unref (display);
video_output_exit ();
diff --git a/tests/internal/test-surfaces.c b/tests/internal/test-surfaces.c
index 2f9a90fa..d0fbfaf4 100644
--- a/tests/internal/test-surfaces.c
+++ b/tests/internal/test-surfaces.c
@@ -57,7 +57,7 @@ main (int argc, char *argv[])
g_print ("created surface %" GST_VAAPI_ID_FORMAT "\n",
GST_VAAPI_ID_ARGS (surface_id));
- gst_vaapi_object_unref (surface);
+ gst_vaapi_surface_unref (surface);
pool = gst_vaapi_surface_pool_new (display, GST_VIDEO_FORMAT_ENCODED,
width, height);
@@ -74,7 +74,8 @@ main (int argc, char *argv[])
}
/* Check the pool doesn't return the last free'd surface */
- surface = gst_vaapi_object_ref (surfaces[1]);
+ surface = (GstVaapiSurface *)
+ gst_mini_object_ref (GST_MINI_OBJECT_CAST (surfaces[1]));
for (i = 0; i < 2; i++)
gst_vaapi_video_pool_put_object (pool, surfaces[i]);
@@ -100,7 +101,7 @@ main (int argc, char *argv[])
/* Unref in random order to check objects are correctly refcounted */
gst_object_unref (display);
gst_vaapi_video_pool_unref (pool);
- gst_vaapi_object_unref (surface);
+ gst_vaapi_surface_unref (surface);
video_output_exit ();
return 0;
}
diff --git a/tests/internal/test-windows.c b/tests/internal/test-windows.c
index 5b185ecb..b9c9ad17 100644
--- a/tests/internal/test-windows.c
+++ b/tests/internal/test-windows.c
@@ -134,7 +134,7 @@ main (int argc, char *argv[])
gst_object_unref (window);
}
- gst_vaapi_object_unref (surface);
+ gst_vaapi_surface_unref (surface);
gst_object_unref (display);
#endif
@@ -199,7 +199,7 @@ main (int argc, char *argv[])
XDestroyWindow (dpy, win);
}
- gst_vaapi_object_unref (surface);
+ gst_vaapi_surface_unref (surface);
gst_object_unref (display);
#endif
@@ -229,7 +229,7 @@ main (int argc, char *argv[])
gst_object_unref (window);
}
- gst_vaapi_object_unref (surface);
+ gst_vaapi_surface_unref (surface);
gst_object_unref (display);
#endif