aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp3
-rw-r--r--xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp b/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp
index 2c246da620..9d4e16700b 100644
--- a/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp
+++ b/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp
@@ -61,7 +61,8 @@ CVideoPlayerAudio::CVideoPlayerAudio(CDVDClock* pClock, CDVDMessageQueue& parent
m_prevskipped = false;
m_maxspeedadjust = 0.0;
- m_messageQueue.SetMaxDataSize(6 * 1024 * 1024);
+ // 18 MB allows max bitrate of 18 Mbit/s (TrueHD max peak) during 8 seconds
+ m_messageQueue.SetMaxDataSize(18 * 1024 * 1024);
m_messageQueue.SetMaxTimeSize(8.0);
m_disconAdjustTimeMs = processInfo.GetMaxPassthroughOffSyncDuration();
}
diff --git a/xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp b/xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp
index ccfca71b79..e4f0e993de 100644
--- a/xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp
+++ b/xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp
@@ -66,7 +66,9 @@ CVideoPlayerVideo::CVideoPlayerVideo(CDVDClock* pClock
m_iLateFrames = 0;
m_iDroppedRequest = 0;
m_fForcedAspectRatio = 0;
- m_messageQueue.SetMaxDataSize(40 * 1024 * 1024);
+
+ // 128 MB allows max bitrate of 128 Mbit/s (e.g. UHD Blu-Ray) during 8 seconds
+ m_messageQueue.SetMaxDataSize(128 * 1024 * 1024);
m_messageQueue.SetMaxTimeSize(8.0);
m_iDroppedFrames = 0;