diff options
author | ritsuka <[email protected]> | 2015-06-01 17:20:43 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-06-01 17:20:43 +0000 |
commit | 876f1f8cafd3510cb04f022f004610e39d50dbc8 (patch) | |
tree | 8fb00efa2f170d03eb96b7859a9a6605f4d8b6f9 /macosx/HBTitle.m | |
parent | c0cb605ff2e3fff65db994506df8f6f7253b5ad8 (diff) |
MacGui: split HBTitle header to make it easier to test. Added some simple tests.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7256 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBTitle.m')
-rw-r--r-- | macosx/HBTitle.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m index 42453d34a..ad926e0cd 100644 --- a/macosx/HBTitle.m +++ b/macosx/HBTitle.m @@ -5,6 +5,7 @@ It may be used under the terms of the GNU General Public License. */ #import "HBTitle.h" +#import "HBTitlePrivate.h" #include "lang.h" @@ -33,6 +34,7 @@ extern NSString *keySubTrackSrtCharCode; @interface HBTitle () +@property (nonatomic, readonly) hb_title_t *hb_title; @property (nonatomic, readwrite, strong) NSString *name; @property (nonatomic, readwrite) NSArray *audioTracks; @@ -43,6 +45,12 @@ extern NSString *keySubTrackSrtCharCode; @implementation HBTitle +/*- (instancetype)init +{ + NSAssert(false, @"[HBTitle init] should not be called"); + return nil; +}*/ + - (instancetype)initWithTitle:(hb_title_t *)title featured:(BOOL)featured { self = [super init]; |