Mercurial > mplayer.hg
comparison gui/interface.c @ 37069:004f226b4e4b
Rewrite add_vf().
Prefer strcmp() to gstrcmp() since vf_settings[i].name has been checked
not to be NULL.
Additionally, rephrase the condition.
author | ib |
---|---|
date | Thu, 24 Apr 2014 12:29:30 +0000 |
parents | 557b33c6a79a |
children | 393b5e0d5f28 |
comparison
equal
deleted
inserted
replaced
37068:557b33c6a79a | 37069:004f226b4e4b |
---|---|
281 | 281 |
282 if (vf_settings) { | 282 if (vf_settings) { |
283 int i = 0; | 283 int i = 0; |
284 | 284 |
285 while (vf_settings[i].name) { | 285 while (vf_settings[i].name) { |
286 if (!gstrcmp(vf_settings[i++].name, vf)) { | 286 if (strcmp(vf_settings[i].name, vf) == 0) { |
287 i = -1; | 287 i = -1; |
288 break; | 288 break; |
289 } | 289 } |
290 } | 290 } |
291 | 291 |