From 6fa859f6796944c0ff3703207623d15963ba7cc5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 4 Oct 2012 11:12:42 +0200 Subject: [PATCH] tests: fix scale test for 1.0 It needs a basetransform patch that makes it prefer the order of the caps property instead of passthrough. --- tests/icles/test-scale.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/tests/icles/test-scale.c b/tests/icles/test-scale.c index 5cdb69b..e780f8a 100644 --- a/tests/icles/test-scale.c +++ b/tests/icles/test-scale.c @@ -41,28 +41,20 @@ make_pipeline (gint type) "ximagesink"); break; case 2: - pstr = g_strdup_printf ("videotestsrc peer-alloc=0 ! videoscale ! " + pstr = g_strdup_printf ("videotestsrc ! videoscale ! " "capsfilter name=filter ! " "ximagesink"); break; case 3: pstr = - g_strdup_printf ("videotestsrc peer-alloc=0 ! queue ! videoscale ! " + g_strdup_printf ("videotestsrc ! queue ! videoscale ! " "capsfilter name=filter ! " "ximagesink"); break; case 4: pstr = - g_strdup_printf ("videotestsrc peer-alloc=0 ! videoscale ! queue ! " + g_strdup_printf ("videotestsrc ! videoscale ! queue ! " "capsfilter name=filter ! " "ximagesink"); break; case 5: - pstr = g_strdup_printf ("videotestsrc peer-alloc=0 ! " - "capsfilter name=filter ! " "ximagesink"); - break; - case 6: - pstr = g_strdup_printf ("videotestsrc ! videoscale ! " - "capsfilter name=filter ! " "ximagesink"); - break; - case 7: pstr = g_strdup_printf ("v4l2src ! videoconvert ! videoscale ! " "capsfilter name=filter ! " "ximagesink"); break; @@ -121,6 +113,7 @@ main (int argc, char **argv) capsstr = g_strdup_printf ("video/x-raw, width=(int)%d, height=(int)%d;" "video/x-raw", width, height); + caps = gst_caps_from_string (capsstr); g_free (capsstr); g_object_set (filter, "caps", caps, NULL); -- 2.7.4