Add back a method that got lost in the google code -> bitbucket port.

This commit is contained in:
Damiano Galassi committed 2013-12-12 20:05:23 +01:00
1 parent ee17967fa3
commit 249aff6245
1 file changed
+13
+13
View File
@@ -18,6 +18,19 @@ extern NSString * const QTTrackLanguageAttribute; // NSNumber (long)
@end
@implementation QTMovie (QTMovieSublerExtras)
- (QTTrack *)trackWithTrackID:(NSInteger)trackID
{
for (QTTrack *track in [self tracks])
if (trackID == [[track attributeForKey:QTTrackIDAttribute] integerValue])
return track;
return nil;
}
@end
@interface QTMovie (QTMovie_MetadataReading_10_6_Fix)
#if (defined(MAC_OS_X_VERSION_10_7))