Commit 4fa4489e authored by Jean-Paul Saman's avatar Jean-Paul Saman

Backport from rev [19109]

parent 525523a7
......@@ -129,23 +129,23 @@ float libvlc_input_get_position( libvlc_input_t *p_input,
float libvlc_input_get_fps( libvlc_input_t *p_input,
libvlc_exception_t *p_e)
{
double f_fps;
double f_fps = 0.0;
input_thread_t *p_input_thread;
p_input_thread = libvlc_get_input_thread ( p_input, p_e );
if ( libvlc_exception_raised( p_e ) ) return 0.0;
if( demux2_Control( p_input_thread->input.p_demux, DEMUX_GET_FPS, &f_fps )
|| f_fps < 0.1 )
if( p_input_thread->input.p_demux )
{
vlc_object_release( p_input_thread );
return 0.0;
}
else
{
vlc_object_release( p_input_thread );
return( f_fps );
if( demux2_Control( p_input_thread->input.p_demux, DEMUX_GET_FPS, &f_fps )
|| (f_fps < 0.1) )
{
vlc_object_release( p_input_thread );
return 0.0;
}
}
vlc_object_release( p_input_thread );
return( f_fps );
}
vlc_bool_t libvlc_input_will_play( libvlc_input_t *p_input,
......
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