diff options
author | jenkins4kodi <jenkins4kodi@users.noreply.github.com> | 2015-01-30 13:28:13 +0100 |
---|---|---|
committer | jenkins4kodi <jenkins4kodi@users.noreply.github.com> | 2015-01-30 13:28:13 +0100 |
commit | 06bac9f4321f91b519204f785be8bb44c208cfe2 (patch) | |
tree | 8a1f0b8acd8193f061c58947b1376d70f423d4b9 | |
parent | 8d9b2a46e510ef8dbb3edfc621a2d693a7903c09 (diff) | |
parent | 8f21038d91c28deeddea6b9fa8d67321aa53fbfc (diff) |
Merge pull request #6295 from fritsch/dvdplayer
-rw-r--r-- | xbmc/cores/dvdplayer/DVDPlayerVideo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp b/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp index b58a4ed917..8a12a6b9a3 100644 --- a/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp +++ b/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp @@ -811,7 +811,7 @@ int CDVDPlayerVideo::GetLevel() const int datasize = m_messageQueue.GetDataSize(); if (m_pVideoCodec) datasize += m_pVideoCodec->GetDataSize(); - return min(100, (int)(100 * datasize / (m_messageQueue.GetMaxDataSize() * m_messageQueue.GetMaxTimeSize()))); + return min(100, MathUtils::round_int((100.0 * datasize) / m_messageQueue.GetMaxDataSize())); } else { |