1
0
Fork 0
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:
Linus Nielsen Feltzing 2002-06-10 10:46:12 +00:00
parent ec2ab7e85a
commit 5ee0b7e9d9

View file

@ -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;