]> git.sesse.net Git - vlc/commitdiff
hotkeys: Fix test (was always true)
authorRémi Duraffort <ivoire@videolan.org>
Thu, 8 Aug 2013 16:53:40 +0000 (18:53 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 9 Aug 2013 08:24:02 +0000 (10:24 +0200)
modules/control/hotkeys.c

index 1b2ee42c067850de1ebb9c885177d7f8ffc61812..e23156e8bb756e0a9985fca30955b6deaaf5872d 100644 (file)
@@ -939,7 +939,7 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
 
                     char *psz_mode = var_GetString( p_vout, "deinterlace-mode" );
                     vlc_value_t vlist, tlist;
-                    if( psz_mode && !var_Change( p_vout, "deinterlace-mode", VLC_VAR_GETCHOICES, &vlist, &tlist ) >= 0 )
+                    if( psz_mode && !var_Change( p_vout, "deinterlace-mode", VLC_VAR_GETCHOICES, &vlist, &tlist ) )
                     {
                         const char *psz_text = NULL;
                         for( int i = 0; i < vlist.p_list->i_count; i++ )