tests: videoscale: fix passthrough unit test

... to really only test the indicated scaling method rather than
all of them.
This commit is contained in:
Mark Nauwelaerts 2012-04-02 17:03:00 +02:00
parent 6656affdfa
commit fd9b69fb33

View file

@ -224,10 +224,10 @@ test_passthrough (int method)
while (*p) {
GstCaps *caps = *p;
for (method = 0; method < 3; method++) {
/* skip formats that videoconvert can't handle */
if (caps_is_supported (caps))
continue;
if (caps_is_supported (caps)) {
goto next;
}
GST_DEBUG ("Running test for caps '%" GST_PTR_FORMAT "'"
" from %dx%u to %dx%d with method %d", caps, src_width, src_height,
@ -261,7 +261,8 @@ test_passthrough (int method)
src_buffers = NULL;
g_list_free (sink_buffers);
sink_buffers = NULL;
}
next:
gst_caps_unref (caps);
p++;
}