Original commit message from CVS: Reset the handled number of samples when going to PAUSED Some cleanups