]> git.sesse.net Git - vlc/blobdiff - modules/access/dvdnav.c
* browsed through all code files starting with A to F and added non-blocking intf_Use...
[vlc] / modules / access / dvdnav.c
index e7c3baa9032c71b2ee745ce8ead56a323922a3e3..8a768e3b56ce1644b1409da2f225c5b7d5318a03 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <vlc/vlc.h>
 #include <vlc/input.h>
+#include <vlc_interaction.h>
 
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
@@ -292,6 +293,9 @@ static int Open( vlc_object_t *p_this )
         if( dvdnav_title_play( p_sys->dvdnav, 1 ) != DVDNAV_STATUS_OK )
         {
             msg_Err( p_demux, "cannot set title (can't decrypt DVD?)" );
+            intf_UserFatal( p_demux, VLC_FALSE, _("Playback failure"), 
+                            _("VLC cannot set the DVD's title. It possibly "
+                              "cannot decrypt the entire disk.") );
             dvdnav_close( p_sys->dvdnav );
             free( p_sys );
             return VLC_EGENERIC;