summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-11-15 18:31:41 +0000
committerdynaflash <[email protected]>2008-11-15 18:31:41 +0000
commite6ff04ad0bcf1eb7b399d96af2306c87eacf606b (patch)
treec854941a2e4cdf1c217566dbe0442048bd796899
parent6416e3861c4ca599ddcce424c5f04a080c9e9e07 (diff)
MacGui: Add the svn and build number to the individual encode log headers
- thanks for noticing and reminding me cvk_b. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1920 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/HBOutputPanelController.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/HBOutputPanelController.m b/macosx/HBOutputPanelController.m
index 13203d3f6..e504a5ff5 100644
--- a/macosx/HBOutputPanelController.m
+++ b/macosx/HBOutputPanelController.m
@@ -138,8 +138,11 @@
[fileManager createFileAtPath:outputLogFileForEncode contents:nil attributes:nil];
/* Similar to the regular activity log, we print a header containing the date and time of the encode as well as what directory it was encoded to */
- NSString *startOutputLogString = [NSString stringWithFormat: @"HandBrake Activity Log for %@: %@\n\n",outputFileForEncode, [[NSDate date] descriptionWithCalendarFormat:nil timeZone:nil locale:nil]];
+ NSString *versionStringFull = [[NSString stringWithFormat: @"Handbrake Version: %@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleGetInfoString"]] stringByAppendingString: [NSString stringWithFormat: @" (%@)\n\n", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]];
+ NSString *startOutputLogString = [NSString stringWithFormat: @"HandBrake Activity Log for %@: %@\n%@",outputFileForEncode, [[NSDate date] descriptionWithCalendarFormat:nil timeZone:nil locale:nil],versionStringFull];
[startOutputLogString writeToFile:outputLogFileForEncode atomically:YES encoding:NSUTF8StringEncoding error:NULL];
+
+
}
- (void) endEncodeLog