diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/mpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 00486e6706..394d1821db 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -339,7 +339,8 @@ static void mpeg_thread(void) | |||
339 | /* Stop the current stream */ | 339 | /* Stop the current stream */ |
340 | playing = false; | 340 | playing = false; |
341 | filling = false; | 341 | filling = false; |
342 | close(mpeg_file); | 342 | if(mpeg_file >= 0) |
343 | close(mpeg_file); | ||
343 | mpeg_file = -1; | 344 | mpeg_file = -1; |
344 | stop_dma(); | 345 | stop_dma(); |
345 | break; | 346 | break; |