[vlc-commits] libvlc/media_player: don't truncate buffering decimals
Thomas Guillem
git at videolan.org
Thu Oct 6 14:57:04 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Oct 6 14:27:34 2016 +0200| [5be7804abb5d0b63f34632c5dfda450b6445d172] | committer: Thomas Guillem
libvlc/media_player: don't truncate buffering decimals
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5be7804abb5d0b63f34632c5dfda450b6445d172
---
lib/media_player.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/media_player.c b/lib/media_player.c
index 7a38582..db08274 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -376,7 +376,7 @@ input_event_changed( vlc_object_t * p_this, char const * psz_cmd,
else if( newval.i_int == INPUT_EVENT_CACHE )
{
event.type = libvlc_MediaPlayerBuffering;
- event.u.media_player_buffering.new_cache = (int)(100 *
+ event.u.media_player_buffering.new_cache = (100 *
var_GetFloat( p_input, "cache" ));
libvlc_event_send( p_mi->p_event_manager, &event );
}
More information about the vlc-commits
mailing list