[DVDnav-discuss] [PATCH] do not close file twice
Erik Hovland
erik at hovland.org
Tue Nov 6 19:43:14 CET 2012
Also dealt w/ in the commit in November '11 in my github tree:
https://github.com/microe/libdvdnav
Thanks
E
On Tue, Nov 6, 2012 at 10:25 AM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de> wrote:
> There is another close further down that will always be reached.
> Current code will result in a double close.
>
> Index: vm/vm.c
> ===================================================================
> --- vm/vm.c (revision 1243)
> +++ vm/vm.c (working copy)
> @@ -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++ ) {
>
> _______________________________________________
> DVDnav-discuss mailing list
> DVDnav-discuss at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss
--
Erik Hovland
erik at hovland.org
http://hovland.org/
More information about the DVDnav-discuss
mailing list