]> git.sesse.net Git - vlc/commitdiff
macosx: use position formatter for start and stop time in open panel
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 2 May 2013 11:08:26 +0000 (13:08 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 2 May 2013 11:08:26 +0000 (13:08 +0200)
modules/gui/macosx/open.m

index 8502ca52e1b148d5680e23288e47ba71793e438d..0540639dc85923e5d1b4d611efba822b3746c0c1 100644 (file)
@@ -47,6 +47,7 @@
 #import "open.h"
 #import "output.h"
 #import "eyetv.h"
+#import "misc.h"
 
 #import <vlc_url.h>
 
@@ -223,6 +224,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
     [o_capture_width_lbl setStringValue: [NSString stringWithFormat:@"%@:",_NS("Image width")]];
     [o_capture_height_lbl setStringValue: [NSString stringWithFormat:@"%@:",_NS("Image height")]];
 
+    // setup start / stop time fields
+    [o_file_starttime_fld setFormatter:[[[PositionFormatter alloc] init] autorelease]];
+    [o_file_stoptime_fld setFormatter:[[[PositionFormatter alloc] init] autorelease]];
+
     [self qtkvideoDevices];
     [o_qtk_video_device_pop removeAllItems];
     msg_Dbg(VLCIntf, "Found %lu video capture devices", [qtkvideoDevices count]);