Show "Passthru" in the action menu for CC tracks.
This commit is contained in:
1 parent
76be5afc88
commit
e198163728
1 file changed
+7
-1
@@ -161,13 +161,19 @@
|
|||||||
[[actionCell menu] addItem:item];
|
[[actionCell menu] addItem:item];
|
||||||
|
|
||||||
NSArray *formatArray = [NSArray arrayWithObjects:MP42SubtitleFormatTx3g, nil];
|
NSArray *formatArray = [NSArray arrayWithObjects:MP42SubtitleFormatTx3g, nil];
|
||||||
for (NSString* format in formatArray) {
|
for (NSString *format in formatArray) {
|
||||||
item = [[[NSMenuItem alloc] initWithTitle:format action:NULL keyEquivalent:@""] autorelease];
|
item = [[[NSMenuItem alloc] initWithTitle:format action:NULL keyEquivalent:@""] autorelease];
|
||||||
[item setTag:tag++];
|
[item setTag:tag++];
|
||||||
[item setEnabled:YES];
|
[item setEnabled:YES];
|
||||||
[[actionCell menu] addItem:item];
|
[[actionCell menu] addItem:item];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if ([track isMemberOfClass:[MP42ClosedCaptionTrack class]]) {
|
||||||
|
NSMenuItem *item = [[[NSMenuItem alloc] initWithTitle:@"Passthru" action:NULL keyEquivalent:@""] autorelease];
|
||||||
|
[item setTag:0];
|
||||||
|
[item setEnabled:YES];
|
||||||
|
[[actionCell menu] addItem:item];
|
||||||
|
}
|
||||||
else if ([track isMemberOfClass:[MP42AudioTrack class]]) {
|
else if ([track isMemberOfClass:[MP42AudioTrack class]]) {
|
||||||
NSInteger tag = 0;
|
NSInteger tag = 0;
|
||||||
NSMenuItem *item = [[[NSMenuItem alloc] initWithTitle:@"Passthru" action:NULL keyEquivalent:@""] autorelease];
|
NSMenuItem *item = [[[NSMenuItem alloc] initWithTitle:@"Passthru" action:NULL keyEquivalent:@""] autorelease];
|
||||||
|
|||||||
Reference in new issue
Block a user