fix ogg playback
simplify while loop
fix playback at the end of the playlist