[vlc-commits] hotkeys: Fix test (was always true)

Rémi Duraffort git at videolan.org
Fri Aug 9 10:28:57 CEST 2013


vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Aug  8 18:53:40 2013 +0200| [85c6f2c63075d33acac845a4603a8e3473213703] | committer: Jean-Baptiste Kempf

hotkeys: Fix test (was always true)

(cherry picked from commit f393ebdfb852b53637421c57a574cb420fd184c7)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=85c6f2c63075d33acac845a4603a8e3473213703
---

 modules/control/hotkeys.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index 1b2ee42..e23156e 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -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++ )



More information about the vlc-commits mailing list