[DVDnav-discuss] r1264 - trunk/libdvdnav/src/vm/vm.c

rathann subversion at mplayerhq.hu
Fri Oct 4 00:43:52 CEST 2013


Author: rathann
Date: Fri Oct  4 00:43:52 2013
New Revision: 1264

Log:
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#

Modified:
   trunk/libdvdnav/src/vm/vm.c

Modified: trunk/libdvdnav/src/vm/vm.c
==============================================================================
--- trunk/libdvdnav/src/vm/vm.c	Fri Oct  4 00:39:38 2013	(r1263)
+++ trunk/libdvdnav/src/vm/vm.c	Fri Oct  4 00:43:52 2013	(r1264)
@@ -176,7 +176,6 @@ static void dvd_read_name(char *name, ch
       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++ ) {


More information about the DVDnav-discuss mailing list