summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-01-09 14:46:52 +0000
committerdynaflash <[email protected]>2008-01-09 14:46:52 +0000
commitf47391dd3683a712c6dcf0c2ff45a93949c3b1ee (patch)
tree0186d43ef52b48f419a994d662e732ed956b6497
parent7ce30b2e99dae314802645e1f2cd1798e57fd8df (diff)
MacGui: Add some activity log messages pertaining to source scan selection
- Add message telling if user tried to open a physical dvd, reports the volume name instead of path (like hb_scan does now). This should help us with support as it tells us from the log what commercial dvd the user is trying to scan directly in most cases. - Add message to tell us which title the user chose to scan for a title specific scan - Cosmetic changes: changed messages and macgui leader to all lowercase to blend in better with the rest of the libhb messages git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1180 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.mm16
1 files changed, 10 insertions, 6 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 27b6abddb..4e53fa1f8 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -775,7 +775,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
time_t _now = time( NULL );
struct tm * now = localtime( &_now );
- fprintf(stderr, "[%02d:%02d:%02d] MacGui: %s\n", now->tm_hour, now->tm_min, now->tm_sec, str );
+ fprintf(stderr, "[%02d:%02d:%02d] macgui: %s\n", now->tm_hour, now->tm_min, now->tm_sec, str );
}
va_end(args);
}
@@ -1194,13 +1194,13 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
/* path is not a package, so we call perform scan directly on our file */
if ([[path lastPathComponent] isEqualToString: @"VIDEO_TS"])
{
- [self writeToActivityLog:"trying to open VIDEO_TS Folder (VIDEO_TS folder Chosen)"];
+ [self writeToActivityLog:"trying to open video_ts folder (video_ts folder chosen)"];
/* If VIDEO_TS Folder is chosen, choose its parent folder for the source display name*/
browsedSourceDisplayName = [[NSString stringWithFormat:@"%@",[[path stringByDeletingLastPathComponent] lastPathComponent]] retain];
}
else
{
- [self writeToActivityLog:"trying to open VIDEO_TS Folder (Parent Folder Chosen)"];
+ [self writeToActivityLog:"trying to open video_ts folder (parent directory chosen)"];
/* if not the VIDEO_TS Folder, we can assume the chosen folder is the source name */
browsedSourceDisplayName = [[NSString stringWithFormat:@"%@",[path lastPathComponent]] retain];
}
@@ -1241,7 +1241,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
if(sender == fScanSrcTitleOpenButton)
{
/* We setup the scan status in the main window to indicate a source title scan */
- [fSrcDVD2Field setStringValue: _( @"Opening a new source title ..." )];
+ [fSrcDVD2Field setStringValue: @"Opening a new source title ..."];
//[fScanIndicator setHidden: NO];
[fScanIndicator setIndeterminate: YES];
[fScanIndicator startAnimation: nil];
@@ -1264,6 +1264,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
// The chosen path was actually on a DVD, so use the raw block
// device path instead.
path = [detector devicePath];
+ [self writeToActivityLog: "trying to open a physical dvd at: %s", [scanPath UTF8String]];
}
/* If there is no title number passed to scan, we use "0"
* which causes the default behavior of a full source scan
@@ -1272,7 +1273,10 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
{
scanTitleNum = 0;
}
-
+ if (scanTitleNum > 0)
+ {
+ [self writeToActivityLog: "scanning specifically for title: %d", scanTitleNum];
+ }
[fSrcDVD2Field setStringValue: [NSString stringWithFormat: @"Scanning new source ..."]];
/* due to issue with progress in the scan indicator, we are starting the
indeterminate animation here */
@@ -1298,7 +1302,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
if( !hb_list_count( list ) )
{
/* We display a message if a valid dvd source was not chosen */
- [fSrcDVD2Field setStringValue: @"No Valid Title Found"];
+ [fSrcDVD2Field setStringValue: @"No Valid Source Found"];
SuccessfulScan = NO;
}
else