[vlc-commits] Bluray: use meaningful error messages when available.
Konstantin Pavlov
git at videolan.org
Wed May 23 10:00:33 CEST 2012
vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri May 18 10:40:54 2012 +0400| [d865085e438b4a2a8307a5e31bafffdbee048aa3] | committer: Konstantin Pavlov
Bluray: use meaningful error messages when available.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d865085e438b4a2a8307a5e31bafffdbee048aa3
---
modules/access/bluray.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index eea10d4..77327e1 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -234,9 +234,35 @@ static int blurayOpen( vlc_object_t *object )
goto error;
}
if (!disc_info->aacs_handled) {
+#ifdef BD_AACS_CORRUPTED_DISC
+ if (disc_info->aacs_error_code) {
+ switch (disc_info->aacs_error_code) {
+ case BD_AACS_CORRUPTED_DISC:
+ error_msg = _("BluRay Disc is corrupted.");
+ break;
+ case BD_AACS_NO_CONFIG:
+ error_msg = _("Missing AACS configuration file!");
+ break;
+ case BD_AACS_NO_PK:
+ error_msg = _("No valid processing key found in AACS config file.");
+ break;
+ case BD_AACS_NO_CERT:
+ error_msg = _("No valid host certificate found in AACS config file.");
+ break;
+ case BD_AACS_CERT_REVOKED:
+ error_msg = _("AACS Host certificate revoked.");
+ break;
+ case BD_AACS_MMC_FAILED:
+ error_msg = _("AACS MMC failed.");
+ break;
+ }
+ goto error;
+ }
+#else
error_msg = _("Your system AACS decoding library does not work. "
"Missing keys?");
goto error;
+#endif /* BD_AACS_CORRUPTED_DISC */
}
}
More information about the vlc-commits
mailing list