[vlc-commits] dvdnav: Inform user when disc access is not granted
David Fuhrmann
git at videolan.org
Mon Feb 10 18:32:51 CET 2020
vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Thu Feb 6 22:31:12 2020 +0100| [f39f67481c08e2e5dab0414e4c95398796f31825] | 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.
(cherry picked from commit ae4dfa3fbbde3349a061e4ca47ecd6b5e9c22935)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=f39f67481c08e2e5dab0414e4c95398796f31825
---
modules/access/dvdnav.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 36638d7680..d382155dd7 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -386,6 +386,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