Skip to content
Browse files

[AE/CA] - fix implementation of AEStream::GetSpace. This is the real …

…fix for the paplayer problem where the next stream was started by accident when paused for a while (visible on dvdplayercodecs). Thx to jm for hammering on it and thx to gimli for the fix :)
  • Loading branch information...
1 parent 2f89a20 commit d646c6fec436a1be0b3a82d734d1aa965a07a45f @Memphiz Memphiz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEStream.cpp
2 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEStream.cpp
@@ -533,7 +533,7 @@ unsigned int CCoreAudioAEStream::GetSpace()
if (!m_valid || m_draining)
return 0;
- return m_Buffer->GetWriteSize();
+ return m_Buffer->GetWriteSize() / m_OutputBytesPerSample * m_StreamBytesPerSample;
double CCoreAudioAEStream::GetDelay()

0 comments on commit d646c6f

Please sign in to comment.
Something went wrong with that request. Please try again.