mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
xvmc: fix string comparison
Fixes:6fca18696d"g3dvl: Update XvMC unit tests." Cc: Younes Manton <younes.m@gmail.com> Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> (cherry picked from commit40b53a7203)
This commit is contained in:
parent
2180aa1bb2
commit
45c3bf14ca
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue