[vlc-commits] input: send position updates to the intf during a fast-skip

Ludovic Fauvet git at videolan.org
Mon May 23 13:11:33 CEST 2011


vlc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Thu Apr 21 23:16:15 2011 +0200| [6f07ef8f5b42184df37e96ff33ee11110d3cea02] | committer: Jean-Baptiste Kempf

input: send position updates to the intf during a fast-skip

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

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

 src/input/var.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/input/var.c b/src/input/var.c
index b516ffb..83510c8 100644
--- a/src/input/var.c
+++ b/src/input/var.c
@@ -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 );
         }
 
         /* */



More information about the vlc-commits mailing list