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,6 +339,7 @@ static void mpeg_thread(void)
|
||||||
/* Stop the current stream */
|
/* Stop the current stream */
|
||||||
playing = false;
|
playing = false;
|
||||||
filling = false;
|
filling = false;
|
||||||
|
if(mpeg_file >= 0)
|
||||||
close(mpeg_file);
|
close(mpeg_file);
|
||||||
mpeg_file = -1;
|
mpeg_file = -1;
|
||||||
stop_dma();
|
stop_dma();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue