[vlc-devel] [PATCH] gestures: fix: allow gesture to be triggered

Zoran Turalija zoran.turalija at gmail.com
Fri Mar 6 20:14:21 CET 2015


---
 modules/control/gestures.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/control/gestures.c b/modules/control/gestures.c
index 2b40fc4..e928928 100644
--- a/modules/control/gestures.c
+++ b/modules/control/gestures.c
@@ -410,8 +410,7 @@ static int MovedEvent( vlc_object_t *p_this, char const *psz_var,
         {
             p_sys->i_last_x = newval.coords.x;
             p_sys->i_last_y = newval.coords.y;
-            if( p_sys->i_num_gestures > 0
-             && gesture( p_sys->i_pattern, p_sys->i_num_gestures - 1 )
+            if( gesture( p_sys->i_pattern, p_sys->i_num_gestures - 1 )
                     != pattern )
             {
                 p_sys->i_pattern |= pattern << ( p_sys->i_num_gestures * 4 );
-- 
2.1.4




More information about the vlc-devel mailing list