Mercurial > libdvdnav.hg
changeset 429:2e6f41e04ca1 src
Do not close file twice.
There is another close further down that will always be reached.
Patch by Reimar D?ffinger ^Reimar&Doeffinger*gmx!de#
| author | rathann |
|---|---|
| date | Thu, 03 Oct 2013 22:43:52 +0000 |
| parents | 10c91a9d6a2e |
| children | 43c9bfd418d1 |
| files | vm/vm.c |
| diffstat | 1 files changed, 0 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vm/vm.c Thu Oct 03 22:39:38 2013 +0000 +++ b/vm/vm.c Thu Oct 03 22:43:52 2013 +0000 @@ -176,7 +176,6 @@ off = lseek( fd, 32 * (off_t) DVD_VIDEO_LB_LEN, SEEK_SET ); if( off == ( 32 * (off_t) DVD_VIDEO_LB_LEN ) ) { off = read( fd, data, DVD_VIDEO_LB_LEN ); - close(fd); if (off == ( (off_t) DVD_VIDEO_LB_LEN )) { fprintf(MSG_OUT, "libdvdnav: DVD Title: "); for(i=25; i < 73; i++ ) {
