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 /apps/plugins | |
parent | 37d4730677fb1a3733d9eb347f3ecf5464030736 (diff) |
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
Diffstat (limited to 'apps/plugins')
-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) rb->lseek(fd, 0, SEEK_SET); // save resume position rb->write(fd, &gFileHdr, sizeof(gFileHdr)); } + Cleanup(&fd); return 0; // all expired } |