From 61b69c72be64f61d8d1a9df8f041a5b7b806a6a8 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 30 Nov 2015 12:43:55 +0000 Subject: [PATCH] [videoplayer] Add logging of message queue levels --- xbmc/cores/VideoPlayer/VideoPlayer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp index e5fe8c5bd75a5..a3244b8903746 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp @@ -1574,7 +1574,11 @@ void CVideoPlayer::ProcessPacket(CDemuxStream* pStream, DemuxPacket* pPacket) { // process packet if it belongs to selected stream. // for dvd's don't allow automatic opening of streams*/ - + { + int a = m_VideoPlayerAudio->GetLevel(), v = m_processInfo->GetLevelVQ(); + if (a < 75 && v < 75) + CLog::Log(LOGDEBUG, "%s - audio:%d video:%d", __FUNCTION__, a, v); + } if (CheckIsCurrent(m_CurrentAudio, pStream, pPacket)) ProcessAudioData(pStream, pPacket); else if (CheckIsCurrent(m_CurrentVideo, pStream, pPacket))