[vlc-commits] dvdread: Inform user when disc access is not granted
David Fuhrmann
git at videolan.org
Thu Feb 6 22:32:38 CET 2020
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Thu Feb 6 22:31:49 2020 +0100| [103f456658ab45cda7908b81c0b91815fe2cc031] | committer: David Fuhrmann
dvdread: 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=103f456658ab45cda7908b81c0b91815fe2cc031
---
modules/access/dvdread.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index 0d41e5f8f6..bbe101ce64 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -195,8 +195,16 @@ static int Open( vlc_object_t *p_this )
if( p_dvdread == NULL )
{
msg_Err( p_demux, "DVDRead cannot open source: %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."));
+#else
vlc_dialog_display_error( p_demux, _("Playback failure"),
_("DVDRead could not open the disc \"%s\"."), psz_file );
+#endif
+
free( psz_file );
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list