diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2016-08-05 20:45:50 +0200 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2016-08-05 22:09:07 +0200 |
commit | 04835e24b08769481bf56e12720ece082c06b27b (patch) | |
tree | f6304be529a6cdbeab18a4d5d43cdaf2aef866a2 | |
parent | 5da72f87d44f1a708a040a0965c17af1a3ecbde5 (diff) |
VideoPlayer: fix early stall of audio stream, sync is now in AE
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp b/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp index 24228154ec..a0cae3e603 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp @@ -238,7 +238,7 @@ void CVideoPlayerAudio::Process() while (!m_bStop) { CDVDMsg* pMsg; - int timeout = (int)(1000 * m_dvdAudio.GetCacheTime()) + 100; + int timeout = (int)(1000 * m_dvdAudio.GetCacheTime()); // read next packet and return -1 on error int priority = 1; @@ -255,13 +255,6 @@ void CVideoPlayerAudio::Process() if (m_paused) priority = 1; - // consider stream stalled if queue is empty - // we can't sync audio to clock with an empty queue - if (ALLOW_AUDIO(m_speed) && !m_stalled && !m_paused) - { - timeout = 0; - } - MsgQueueReturnCode ret = m_messageQueue.Get(&pMsg, timeout, priority); if (MSGQ_IS_ERROR(ret)) |