From 40b53a72033a601ab474c5f8e27eb5ca2c8bad6c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 6 Feb 2019 16:28:12 +0000 Subject: [PATCH] xvmc: fix string comparison Fixes: 6fca18696d0e6a243f6f "g3dvl: Update XvMC unit tests." Cc: Younes Manton Signed-off-by: Eric Engestrom --- src/gallium/state_trackers/xvmc/tests/xvmc_bench.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c b/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c index 3cd23173c7c..dbd705639f6 100644 --- a/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c +++ b/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c @@ -123,11 +123,11 @@ void ParseArgs(int argc, char **argv, struct Config *config) while (token && !fail) { - if (strcmp(token, "i")) + if (strcmp(token, "i") == 0) config->mb_types |= MB_TYPE_I; - else if (strcmp(token, "p")) + else if (strcmp(token, "p") == 0) config->mb_types |= MB_TYPE_P; - else if (strcmp(token, "b")) + else if (strcmp(token, "b") == 0) config->mb_types |= MB_TYPE_B; else fail = 1; -- 2.30.2