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

Zoran Turalija git at videolan.org
Sun Mar 8 23:48:01 CET 2015


vlc | branch: master | Zoran Turalija <zoran.turalija at gmail.com> | Sun Mar  8 15:35:33 2015 +0000| [5e6b6558c6e72b9c743d961fba0dae0707768392] | committer: Jean-Baptiste Kempf

gestures: fix: allow gesture to be triggered

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e6b6558c6e72b9c743d961fba0dae0707768392
---

 modules/control/gestures.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/control/gestures.c b/modules/control/gestures.c
index 2b40fc4..a2fe30b 100644
--- a/modules/control/gestures.c
+++ b/modules/control/gestures.c
@@ -417,6 +417,11 @@ static int MovedEvent( vlc_object_t *p_this, char const *psz_var,
                 p_sys->i_pattern |= pattern << ( p_sys->i_num_gestures * 4 );
                 p_sys->i_num_gestures++;
             }
+            else if( p_sys->i_num_gestures == 0 )
+            {
+                p_sys->i_pattern = pattern;
+                p_sys->i_num_gestures++;
+            }
         }
 
     }



More information about the vlc-commits mailing list