diff options
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; |