diff options
author | Damiano Galassi <[email protected]> | 2016-07-21 10:44:27 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-07-21 10:44:27 +0200 |
commit | db9ae28991fe8b10ee624ded5a94509cf9fa7174 (patch) | |
tree | e8ab33f7c2c8d466f5de3899f94cb8523de7a271 /macosx/HBSubtitlesTrack.m | |
parent | 39d03522f7ea220bb277ce5842a98e6d49be7d11 (diff) |
MacGui: disable the 'forced' checkbox for subtitles track if forced is not supported.
Diffstat (limited to 'macosx/HBSubtitlesTrack.m')
-rw-r--r-- | macosx/HBSubtitlesTrack.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBSubtitlesTrack.m b/macosx/HBSubtitlesTrack.m index cc5543643..c9dac3bdc 100644 --- a/macosx/HBSubtitlesTrack.m +++ b/macosx/HBSubtitlesTrack.m @@ -261,6 +261,11 @@ NSString *keySubTrackSrtFileURL = @"keySubTrackSrtFileURL"; return self.sourceTrackIdx != 0; } +- (BOOL)isForcedSupported +{ + return hb_subtitle_can_force(self.type) && self.isEnabled; +} + - (BOOL)canPassthru { return (BOOL)hb_subtitle_can_pass(self.type, self.container) && self.isEnabled; |