Fixes to ContinuousPlaybackThread.
Merge remote-tracking branch 'origin/master'