[vlc-commits] dvdnav: Inform user when disc access is not granted
David Fuhrmann
git at videolan.org
Thu Feb 6 22:32:37 CET 2020
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Thu Feb 6 22:31:12 2020 +0100| [ae4dfa3fbbde3349a061e4ca47ecd6b5e9c22935] | committer: David Fuhrmann
dvdnav: Inform user when disc access is not granted
macOS only asks once when requesting ressource access. If the user
declines for some reason, VLC will error out silently in subsequent
tries. Lets inform the user and explain better what he needs to
change in order to gain access again.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae4dfa3fbbde3349a061e4ca47ecd6b5e9c22935
---
modules/access/dvdnav.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 3e5cdb2a7c..fb1b1aef63 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -362,6 +362,13 @@ static int AccessDemuxOpen ( vlc_object_t *p_this )
if( dvdnav_open( &p_dvdnav, psz_path ) != DVDNAV_STATUS_OK )
{
msg_Warn( p_demux, "cannot open DVD (%s)", psz_file);
+
+#ifdef __APPLE__
+ vlc_dialog_display_error( p_demux, _("Problem accessing a system resource"),
+ _("Potentially, macOS blocks access to your disc. "
+ "Please open \"System Preferences\" -> \"Security & Privacy\" "
+ "and allow VLC to access your external media in \"Files and Folders\" section."));
+#endif
goto bailout;
}
More information about the vlc-commits
mailing list