summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-filter.c2
-rw-r--r--tests/test-subpicture.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/tests/test-filter.c b/tests/test-filter.c
index 8e19fab7..05dfee9d 100644
--- a/tests/test-filter.c
+++ b/tests/test-filter.c
@@ -100,7 +100,7 @@ create_test_surface(GstVaapiDisplay *display, guint width, guint height,
GError *error = NULL;
if (g_src_format_str) {
- format = gst_vaapi_video_format_from_string(g_src_format_str);
+ format = gst_video_format_from_string(g_src_format_str);
if (format == GST_VIDEO_FORMAT_UNKNOWN)
goto error_invalid_format;
}
diff --git a/tests/test-subpicture.c b/tests/test-subpicture.c
index 87cbace6..782be089 100644
--- a/tests/test-subpicture.c
+++ b/tests/test-subpicture.c
@@ -130,7 +130,6 @@ main(int argc, char *argv[])
subrect.height = subinfo.height;
subrect.width = subinfo.width;
-#if GST_CHECK_VERSION(1,0,0)
{
GstVideoMeta * const vmeta =
gst_buffer_add_video_meta(buffer, GST_VIDEO_FRAME_FLAG_NONE,
@@ -142,11 +141,6 @@ main(int argc, char *argv[])
overlay = gst_video_overlay_rectangle_new_raw(buffer,
subrect.x, subrect.y, subrect.width, subrect.height, flags);
}
-#else
- overlay = gst_video_overlay_rectangle_new_argb(buffer,
- subinfo.width, subinfo.height, subinfo.width * 4,
- subrect.x, subrect.y, subrect.width, subrect.height, flags);
-#endif
if (!overlay)
g_error("could not create video overlay");
gst_buffer_unref(buffer);