fritsch/xbmc — pull request #2 by xLAva (2014-01-06 20:12:38+00:00)
Title: AESinkPULSE: fixed stuttering sound on passthrough

I had some issues with the pass through sound on my setup.
This very small patch fixed it.
* don't abort too early with CActiveAESink::OutputSamples - failed: reset the retry count if m_sink->AddPackets was successful

As far as I can tell: AddPackets very often (if not always) returns at least once with zero in CActiveAESink::OutputSamples.
This behaviour is caused (as you most likely know) by pa_stream_writable_size returning zero as well.

So I think my patch should do no harm.
But of course I don't know how all the other sinks work.

If you need somebody to test out your work on the Pulse audio sink, I'm glad to help.