Commit 3629d607 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

input: don't be too clever with start-time - fixes #3042

Deeper code can cope with too overly large values.
We need to accept seemingly too far start times because the length is
typically not known at startup (and hence set to zero).
parent 71d32071
...@@ -959,12 +959,6 @@ static void StartTitle( input_thread_t * p_input ) ...@@ -959,12 +959,6 @@ static void StartTitle( input_thread_t * p_input )
const mtime_t i_length = var_GetTime( p_input, "length" ); const mtime_t i_length = var_GetTime( p_input, "length" );
if( p_input->p->i_start > 0 ) if( p_input->p->i_start > 0 )
{
if( p_input->p->i_start >= i_length )
{
msg_Warn( p_input, "invalid start-time ignored" );
}
else
{ {
vlc_value_t s; vlc_value_t s;
...@@ -974,7 +968,6 @@ static void StartTitle( input_thread_t * p_input ) ...@@ -974,7 +968,6 @@ static void StartTitle( input_thread_t * p_input )
s.i_time = p_input->p->i_start; s.i_time = p_input->p->i_start;
input_ControlPush( p_input, INPUT_CONTROL_SET_TIME, &s ); input_ControlPush( p_input, INPUT_CONTROL_SET_TIME, &s );
} }
}
if( p_input->p->i_stop > 0 && p_input->p->i_stop <= p_input->p->i_start ) if( p_input->p->i_stop > 0 && p_input->p->i_stop <= p_input->p->i_start )
{ {
msg_Warn( p_input, "invalid stop-time ignored" ); msg_Warn( p_input, "invalid stop-time ignored" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment