From fdd14466fe8184e7f6e4821a0a512633d5d5f954 Mon Sep 17 00:00:00 2001 From: Rainer Hochecker Date: Thu, 5 Dec 2013 18:42:50 +0100 Subject: ActiveAE: fix incorrect return values of GetSpace --- xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp index 22b6e71354..c977c37b6b 100644 --- a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp +++ b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp @@ -1001,6 +1001,7 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt) // create buffer pool (*it)->m_inputBuffers = new CActiveAEBufferPool((*it)->m_format); (*it)->m_inputBuffers->Create(MAX_CACHE_LEVEL*1000); + (*it)->m_streamSpace = (*it)->m_format.m_frameSize * (*it)->m_format.m_frames; } if (initSink && (*it)->m_resampleBuffers) { -- cgit v1.2.3