summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2009-05-01 21:40:35 +0000
committerdynaflash <[email protected]>2009-05-01 21:40:35 +0000
commit31b15744f3c2c716b560c396b9c1479ef60cd2ff (patch)
treef836404ef29766dc953caf610c7d299c359d6a6c /macosx
parent9e6e61be9bac55090c9f5e9f86f2f9699150a60b (diff)
MacGui: Add an "Attempt Scan Anyway" option to the 64-bit physical dvd scan warning.
- Allows reading of un-encrypted physical dvd's. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2365 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.mm15
1 files changed, 14 insertions, 1 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 6d929a010..025304035 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -1470,8 +1470,21 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
/*On Screen Notification*/
int status;
NSBeep();
- status = NSRunAlertPanel(@"64-bit HandBrake cannot read encrypted dvds!",@"This scan will be cancelled!", @"OK", nil, nil);
+ status = NSRunAlertPanel(@"64-bit HandBrake cannot read encrypted dvds!",@"", @"Cancel Scan", @"Attempt Scan Anyway", nil);
[NSApp requestUserAttention:NSCriticalRequest];
+
+ if (status == NSAlertDefaultReturn)
+ {
+ /* User chose to cancel the scan */
+ [self writeToActivityLog: "cannot open physical dvd , scan cancelled"];
+ cancelScanDecrypt = 1;
+ }
+ else
+ {
+ [self writeToActivityLog: "user overrode 64-bit warning trying to open physical dvd without decryption"];
+ cancelScanDecrypt = 0;
+ }
+
#else
/* lets check for vlc here to make sure we have a dylib available to use for decrypting */
NSString *vlcPath = @"/Applications/VLC.app/Contents/MacOS/lib/libdvdcss.2.dylib";