]> git.sesse.net Git - vlc/blobdiff - modules/access/dvdread.c
imem: don't pass data pointer through MRL either
[vlc] / modules / access / dvdread.c
index 8b4a05b27f094da0ebf649161395cf3f5763a32a..bd858469f529a3bc6b8547515b3be732a8d20fa3 100644 (file)
@@ -46,7 +46,6 @@
 #   include <unistd.h>
 #endif
 
-#include <fcntl.h>
 #include <sys/types.h>
 
 #ifdef HAVE_DVDREAD_DVD_READER_H
@@ -205,7 +204,8 @@ static int Open( vlc_object_t *p_this )
     if( !p_demux->psz_path || !*p_demux->psz_path )
     {
         /* Only when selected */
-        if( !p_this->b_force ) return VLC_EGENERIC;
+        if( !p_demux->psz_access || !*p_demux->psz_access )
+            return VLC_EGENERIC;
 
         psz_name = var_CreateGetString( p_this, "dvd" );
         if( !psz_name )