forked from len0rd/rockbox
mpeg_stop now calls close only if the file handle is valid
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@930 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ec2ab7e85a
commit
5ee0b7e9d9
1 changed files with 2 additions and 1 deletions
|
|
@ -339,7 +339,8 @@ static void mpeg_thread(void)
|
|||
/* Stop the current stream */
|
||||
playing = false;
|
||||
filling = false;
|
||||
close(mpeg_file);
|
||||
if(mpeg_file >= 0)
|
||||
close(mpeg_file);
|
||||
mpeg_file = -1;
|
||||
stop_dma();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue