Commit 4e0e52a3 authored by Laurent Aimar's avatar Laurent Aimar

control: invalid cast in GET_SUBDELAY

 input: fixed uninitialised variable (i_microsecondperframe for subs)
parent 15fb4490
...@@ -188,7 +188,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args ) ...@@ -188,7 +188,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
break; break;
case INPUT_GET_SUBDELAY: case INPUT_GET_SUBDELAY:
pi = (int)va_arg( args, int *); pi = (int*)va_arg( args, int *);
/* We work on the first subtitle */ /* We work on the first subtitle */
if( p_input->p_sys != NULL ) if( p_input->p_sys != NULL )
{ {
......
...@@ -1093,6 +1093,7 @@ static int InitThread( input_thread_t * p_input ) ...@@ -1093,6 +1093,7 @@ static int InitThread( input_thread_t * p_input )
/* Get fps */ /* Get fps */
if( demux_Control( p_input, DEMUX_GET_FPS, &f_fps ) || f_fps < 0.1 ) if( demux_Control( p_input, DEMUX_GET_FPS, &f_fps ) || f_fps < 0.1 )
{ {
i_microsecondperframe = 0;
} }
else else
{ {
......
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