OSDN Git Service

MacGui: Fix source duration display format when using time or frame based encoding.
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 4 Jan 2010 17:15:08 +0000 (17:15 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 4 Jan 2010 17:15:08 +0000 (17:15 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@3054 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.m

index 9788834..8f4364c 100644 (file)
@@ -4564,7 +4564,7 @@ bool one_burned = FALSE;
 
        int duration = [fSrcTimeEndEncodingField intValue] - [fSrcTimeStartEncodingField intValue];
     [fSrcDuration2Field setStringValue: [NSString stringWithFormat:
-        @"%02lld:%02lld:%02lld", duration / 3600, ( duration / 60 ) % 60,
+        @"%02d:%02d:%02d", duration / 3600, ( duration / 60 ) % 60,
         duration % 60]];
     
     //[self calculateBitrate: sender];
@@ -4579,7 +4579,7 @@ bool one_burned = FALSE;
     
     int duration = ([fSrcFrameEndEncodingField intValue] - [fSrcFrameStartEncodingField intValue]) / (title->rate / title->rate_base);
     [fSrcDuration2Field setStringValue: [NSString stringWithFormat:
-                                         @"%02lld:%02lld:%02lld", duration / 3600, ( duration / 60 ) % 60,
+                                         @"%02d:%02d:%02d", duration / 3600, ( duration / 60 ) % 60,
                                          duration % 60]];
     
     //[self calculateBitrate: sender];