xbmc/xbmc — pull request #1422 by FernetMenta (2012-09-14 10:08:40+00:00)
Title: AE: fix audio sync

This is a concept fix for a major bug in AE. GetDelay returned random values because it did not consider context switches. In particular this was noticeable when transcoding was active. The audio error in dvdplayer was jumping back and forth by > 100ms.

I have done and tested this only for SoftAE yet but should be easy to add to the other engines too.
Thoughts?