summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2015-04-03 16:55:27 +0300
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-04-03 16:55:27 +0300
commitd256f1d283066a87f2930a40770d3dca8336a8d6 (patch)
treeafb685a9c45519704909c7381f70aa6d02c2f1ea /tests
parent0311c7c8af6bcab9f5ea38c39d80556ef9e34803 (diff)
Removal of gstreamer-0.10 support
This patch removes all the pre-processor conditional code compilation guarded for gstreamer-0.10. https://bugzilla.gnome.org/show_bug.cgi?id=745728 https://bugzilla.gnome.org/show_bug.cgi?id=732666 Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
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);