]> git.sesse.net Git - vlc/commitdiff
input: send position updates to the intf during a fast-skip
authorLudovic Fauvet <etix@l0cal.com>
Thu, 21 Apr 2011 21:16:15 +0000 (23:16 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 23 May 2011 10:57:35 +0000 (12:57 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/input/var.c

index b516ffb53b526c053f79c7f433f89587fe690a40..83510c8c3cfb99b88e8793e94ffe049b477c2e1f 100644 (file)
@@ -633,6 +633,11 @@ static int TimeCallback( vlc_object_t *p_this, char const *psz_cmd,
 
             val.f_float = (double)newval.i_time/(double)i_length;
             var_Change( p_input, "position", VLC_VAR_SETVALUE, &val, NULL );
+            /*
+             * Notify the intf that a new event has been occurred.
+             * XXX this is a bit hackish but it's the only way to do it now.
+             */
+            var_SetInteger( p_input, "intf-event", INPUT_EVENT_POSITION );
         }
 
         /* */