mirror of
https://github.com/videolan/vlc.git
synced 2024-12-14 12:14:42 +08:00
control: invalid cast in GET_SUBDELAY
input: fixed uninitialised variable (i_microsecondperframe for subs)
This commit is contained in:
parent
15fb44901c
commit
4e0e52a375
@ -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 )
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user