mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
tests: videoscale: fix passthrough unit test
... to really only test the indicated scaling method rather than all of them.
This commit is contained in:
parent
6656affdfa
commit
fd9b69fb33
1 changed files with 38 additions and 37 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue