Handle unplayable files for gapless playback.

Remove the recursion in open() and replace it with a loop, and handle
the various cases a nonplayable file can be encountered during playback.

Change-Id: Ia4d13d5573f678c87f53ae090366cf61c38f6a45
1 file changed