Commit 173a1081 authored by Jean-Paul Saman's avatar Jean-Paul Saman

libvlc_media_player_get_state: cache is between [0.0 .. 1.0] (spotted by Laurant Almar).

parent b757e867
...@@ -1162,7 +1162,7 @@ libvlc_state_t libvlc_media_player_get_state( ...@@ -1162,7 +1162,7 @@ libvlc_state_t libvlc_media_player_get_state(
{ {
float caching; float caching;
caching = var_GetFloat( p_input_thread, "cache" ); caching = var_GetFloat( p_input_thread, "cache" );
if( caching > 0.0 && caching < 100.0 ) if( caching > 0.0 && caching < 1.0 )
state = libvlc_Buffering; state = libvlc_Buffering;
} }
vlc_object_release( p_input_thread ); vlc_object_release( p_input_thread );
......
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