]> git.sesse.net Git - vlc/commitdiff
Fix --stop-time.
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 4 Jan 2009 18:36:51 +0000 (19:36 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 4 Jan 2009 18:36:51 +0000 (19:36 +0100)
Looks like p_input->i_time is only used for --stop-time. Is that normal?

src/input/input.c

index 8ec2dc6326fa748eb75c6b6aacaeecff9e0a975b..64d0cf03a7c17f63332082e3563ee8ea5db2b956 100644 (file)
@@ -678,6 +678,7 @@ static void MainLoopInterface( input_thread_t *p_input )
     if( demux_Control( p_input->p->input.p_demux,
                        DEMUX_GET_TIME, &i_time ) )
         i_time = 0;
+    p_input->i_time = i_time;
 
     if( demux_Control( p_input->p->input.p_demux,
                        DEMUX_GET_LENGTH, &i_length ) )