diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-01-16 00:10:57 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-01-16 00:10:57 +0000 |
commit | 4666f7e0d9abc96fefa57838452bec1e321ef3e0 (patch) | |
tree | 6bc34481226ec173068ddf122d1d444424bed72b | |
parent | 37d4730677fb1a3733d9eb347f3ecf5464030736 (diff) | |
download | rockbox-4666f7e0d9abc96fefa57838452bec1e321ef3e0.tar.gz rockbox-4666f7e0d9abc96fefa57838452bec1e321ef3e0.zip |
Bugfix: Ordinary ending of playback didn't close the file (File handle leak, cleared resume position was not saved).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5565 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/video.c b/apps/plugins/video.c index de05ba4af4..73968d33b3 100644 --- a/apps/plugins/video.c +++ b/apps/plugins/video.c | |||
@@ -597,6 +597,7 @@ int PlayTick(int fd) | |||
597 | rb->lseek(fd, 0, SEEK_SET); // save resume position | 597 | rb->lseek(fd, 0, SEEK_SET); // save resume position |
598 | rb->write(fd, &gFileHdr, sizeof(gFileHdr)); | 598 | rb->write(fd, &gFileHdr, sizeof(gFileHdr)); |
599 | } | 599 | } |
600 | Cleanup(&fd); | ||
600 | return 0; // all expired | 601 | return 0; // all expired |
601 | } | 602 | } |
602 | 603 | ||