Skip to content

Commit

Permalink
Merge pull request xbmc#23883 from thexai/player-queue
Browse files Browse the repository at this point in the history
[VideoPlayer] Updates audio/video queues for nowadays maximum bitrates
  • Loading branch information
thexai authored Oct 8, 2023
2 parents df97ff5 + 6815070 commit c1cf35f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 3 additions & 1 deletion xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c1cf35f

Please sign in to comment.