]> granicus.if.org Git - handbrake/commitdiff
MacGui: do not set the track name if it's one of those we generate.
authorDamiano Galassi <damiog@gmail.com>
Fri, 30 Aug 2019 08:53:05 +0000 (10:53 +0200)
committerDamiano Galassi <damiog@gmail.com>
Fri, 30 Aug 2019 08:53:05 +0000 (10:53 +0200)
macosx/HBAudioTrack.m

index 4ec01eff0f1e840e01531c81b6bdf970735a6f22..52f0bb53ebecdb33f54d06a5b4bbfbe1507809a2 100644 (file)
@@ -45,7 +45,7 @@
         _dataSource = dataSource;
         _sourceTrackIdx = index;
         _container = container;
-        _title = [dataSource sourceTrackAtIndex:_sourceTrackIdx].title;
+        self.title = [dataSource sourceTrackAtIndex:_sourceTrackIdx].title;
 
         [self validateSettings];
 
 
 - (void)setTitle:(NSString *)title
 {
+    if ([title isEqualToString:@"Mono"] ||
+        [title isEqualToString:@"Stereo"] ||
+        [title isEqualToString:@"Surround"])
+    {
+        title = nil;
+    }
+
     if (title != _title)
     {
         [[self.undo prepareWithInvocationTarget:self] setTitle:_title];