]> git.sesse.net Git - vlc/blobdiff - modules/access/dvdread.c
Fixed an assert with still frame in dvdnav.
[vlc] / modules / access / dvdread.c
index a691a49817992351a04ebd9c781e66f5a20cf6df..bd858469f529a3bc6b8547515b3be732a8d20fa3 100644 (file)
@@ -46,9 +46,7 @@
 #   include <unistd.h>
 #endif
 
-#include <fcntl.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 
 #ifdef HAVE_DVDREAD_DVD_READER_H
   #include <dvdread/dvd_reader.h>
@@ -206,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 )