[vlc-devel] [PATCH 2/4] input: Seek via "time" var in StartTime

Thomas Guillem thomas at gllm.fr
Thu Jun 9 18:16:49 CEST 2016


This will trigger TimeCallback that will also update position.
---
 src/input/input.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 39f9867..2bcb16b 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -918,13 +918,10 @@ static void StartTitle( input_thread_t * p_input )
 
     if( p_input->p->i_start > 0 )
     {
-        vlc_value_t s;
-
         msg_Dbg( p_input, "starting at time: %ds",
                  (int)( p_input->p->i_start / CLOCK_FREQ ) );
 
-        s.i_int = p_input->p->i_start;
-        input_ControlPush( p_input, INPUT_CONTROL_SET_TIME, &s );
+        var_SetInteger( p_input, "time", p_input->p->i_start );
     }
     else
         input_SendEventPosition( p_input, 0.0, 0 );
-- 
2.8.1



More information about the vlc-devel mailing list