diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-06-15 14:26:40 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-06-15 14:26:40 +0000 |
commit | 18cfbae67c7394e4858f91bc3fe77b6be7337d12 (patch) | |
tree | eb3ab364d2637e7e3a61b0f99a92b5dc490cbc32 /src | |
parent | cb06345c8834eba720bd6ce45554f963d9dddc3d (diff) | |
download | xine-lib-18cfbae67c7394e4858f91bc3fe77b6be7337d12.tar.gz xine-lib-18cfbae67c7394e4858f91bc3fe77b6be7337d12.tar.bz2 |
Don't try to access auth_drive if it's not present at all, avoid crashes. Thanks to Lars for reporting.
CVS patchset: 8039
CVS date: 2006/06/15 14:26:40
Diffstat (limited to 'src')
-rw-r--r-- | src/input/libdvdnav/dvd_reader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/libdvdnav/dvd_reader.c b/src/input/libdvdnav/dvd_reader.c index 6ca1a18b9..6997f5bb2 100644 --- a/src/input/libdvdnav/dvd_reader.c +++ b/src/input/libdvdnav/dvd_reader.c @@ -482,7 +482,7 @@ dvd_reader_t *DVDOpen( const char *ppath ) auth_drive = DVDOpenImageFile( me->mnt_fsname, have_css ); /* If the device is not encrypted, don't access the device * directly as it would fail for non-UDF DVDs */ - if ( dvdinput_is_encrypted( auth_drive->dev ) == 0) { + if ( auth_drive && dvdinput_is_encrypted( auth_drive->dev ) == 0) { DVDClose( auth_drive ); auth_drive = NULL; break; |