Skip to content
This repository
Browse code

[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...
commit d646c6fec436a1be0b3a82d734d1aa965a07a45f 1 parent 2f89a20
Memphiz authored December 11, 2012
2  xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEStream.cpp
@@ -533,7 +533,7 @@ unsigned int CCoreAudioAEStream::GetSpace()
533 533
   if (!m_valid || m_draining)
534 534
     return 0;
535 535
 
536  
-  return m_Buffer->GetWriteSize();
  536
+  return m_Buffer->GetWriteSize() / m_OutputBytesPerSample  * m_StreamBytesPerSample;
537 537
 }
538 538
 
539 539
 double CCoreAudioAEStream::GetDelay()

0 notes on commit d646c6f

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