control: invalid cast in GET_SUBDELAY

input: fixed uninitialised variable (i_microsecondperframe for subs)
This commit is contained in:
Laurent Aimar 2004-03-29 15:10:36 +00:00
parent 15fb44901c
commit 4e0e52a375
2 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
break;
case INPUT_GET_SUBDELAY:
pi = (int)va_arg( args, int *);
pi = (int*)va_arg( args, int *);
/* We work on the first subtitle */
if( p_input->p_sys != NULL )
{

View File

@ -1093,6 +1093,7 @@ static int InitThread( input_thread_t * p_input )
/* Get fps */
if( demux_Control( p_input, DEMUX_GET_FPS, &f_fps ) || f_fps < 0.1 )
{
i_microsecondperframe = 0;
}
else
{