Gracefully handle failures to load audio files
This commit is contained in:
parent
5573199c4e
commit
034cd38cf4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user