[DVDnav-discuss] r1189 - trunk/libdvdread/src/dvd_reader.c
reimar
subversion at mplayerhq.hu
Sat Jan 30 16:15:23 CET 2010
Author: reimar
Date: Sat Jan 30 16:15:23 2010
New Revision: 1189
Log:
100l, initialize file descriptor to -1, not 0.
Fixes libdvdread closing stdin if it can't open the file/device.
Modified:
trunk/libdvdread/src/dvd_reader.c
Modified: trunk/libdvdread/src/dvd_reader.c
==============================================================================
--- trunk/libdvdread/src/dvd_reader.c Mon Dec 7 04:50:20 2009 (r1188)
+++ trunk/libdvdread/src/dvd_reader.c Sat Jan 30 16:15:23 2010 (r1189)
@@ -335,7 +335,7 @@ static char *bsd_block2char( const char
dvd_reader_t *DVDOpen( const char *ppath )
{
struct stat fileinfo;
- int ret, have_css, retval, cdir = 0;
+ int ret, have_css, retval, cdir = -1;
dvd_reader_t *ret_val = NULL;
char *dev_name = NULL;
char *path = NULL, *new_path = NULL, *path_copy = NULL;
More information about the DVDnav-discuss
mailing list