Gracefully handle failures to load audio files

This commit is contained in:
Kevin Lange 2015-05-13 18:52:00 -07:00
parent 5573199c4e
commit 034cd38cf4

View File

@ -138,6 +138,7 @@ static void do_write(size_t buffers) {
static void playback_tasklet(void * data, char * name) {
file = kopen((char*)data, 0);
free(data);
if (!file) task_exit(1);
offset = 0;
last_finish = 0;