[MPlayer-cvslog] r37165 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Thu Apr 24 14:29:31 CEST 2014


Author: ib
Date: Thu Apr 24 14:29:30 2014
New Revision: 37165

Log:
Rewrite add_vf().

Prefer strcmp() to gstrcmp() since vf_settings[i].name has been checked
not to be NULL.

Additionally, rephrase the condition.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Thu Apr 24 14:22:09 2014	(r37164)
+++ trunk/gui/interface.c	Thu Apr 24 14:29:30 2014	(r37165)
@@ -283,7 +283,7 @@ static void add_vf(const char *vf)
         int i = 0;
 
         while (vf_settings[i].name) {
-            if (!gstrcmp(vf_settings[i++].name, vf)) {
+            if (strcmp(vf_settings[i].name, vf) == 0) {
                 i = -1;
                 break;
             }


More information about the MPlayer-cvslog mailing list