]> git.sesse.net Git - vlc/blobdiff - modules/access/dvdnav.c
* modules/access/dvdnav.c,dvdread.c: backport of #11308.
[vlc] / modules / access / dvdnav.c
index 475d2e616ab84ed8c2ca481b0d311ce2a0287347..e0e75dd22d84cb5e3f6ff9ca0d36cb48d1ec308d 100644 (file)
@@ -292,7 +292,10 @@ static int Open( vlc_object_t *p_this )
 
         if( dvdnav_title_play( p_sys->dvdnav, 1 ) != DVDNAV_STATUS_OK )
         {
-            msg_Warn( p_demux, "cannot set title" );
+            msg_Err( p_demux, "cannot set title (can't decrypt DVD?)" );
+            dvdnav_close( p_sys->dvdnav );
+            free( p_sys );
+            return VLC_EGENERIC;
         }
 
         if( dvdnav_menu_call( p_sys->dvdnav, DVD_MENU_Title ) !=