cmus/cmus — pull request #122 by nefthy (2014-04-08 23:44:52+00:00)
Title: fixes buffer overflow and channel position tracking

samples might actually be less than the lag. If that is the case, a
bufferoverflow occurs.

position tracking was also brocken, as it compared the bytes read and
not the current channel position.