Changeset 1170 for branches/PlayerFramework/SapphireFrappliance/MetaDataImporting/SapphireVideoTSParser.m
- Timestamp:
- 02/24/2010 06:40:01 PM (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/PlayerFramework/SapphireFrappliance/MetaDataImporting/SapphireVideoTSParser.m
r913 r1170 24 24 // Instead of declaring them in the header, we declare them here in a category that extends the class. 25 25 26 @interface SapphireVideoTsParser ( InternalMethods)26 @interface SapphireVideoTsParser () 27 27 28 28 /*! … … 76 76 #define vts_VideoIsWidescreen(attrs) ( attrs[0] & 0x0c) 77 77 78 #define vts_AudioIsDTS(attrs) ((attrs[0] & 0xe0) == 0x 0c)78 #define vts_AudioIsDTS(attrs) ((attrs[0] & 0xe0) == 0xc0) 79 79 #define vts_AudioIsSurround(attrs) ( attrs[0] & 0x02) 80 80 #define vts_AudioIsCommentary(attrs) ( attrs[5] > 1) … … 100 100 static NSString *languageFromEncodedChars( const char firstChar, const char secondChar ) 101 101 { 102 static NSLocale *currentLocale = nil;102 NSLocale *currentLocale = [NSLocale currentLocale]; 103 103 const char langCode[] = { firstChar, secondChar, 0 }; 104 104 105 if( currentLocale == nil )106 currentLocale = [NSLocale currentLocale];107 108 105 return [currentLocale displayNameForKey:NSLocaleLanguageCode 109 106 value:[NSString stringWithCString:langCode encoding:NSASCIIStringEncoding]]; … … 319 316 audio = commaSeparatedStringFromCollection( audioList ); 320 317 } 321 322 if( audio == nil )323 audio = BRLocalizedString( @"Not specified", @"No Audio information available for a DVD" );;324 318 } 325 319 … … 355 349 subtitles = commaSeparatedStringFromCollection( subtitleList ); 356 350 } 357 358 if( subtitles == nil )359 subtitles = BRLocalizedString( @"None", @"No Subtitle information available for a DVD" );360 351 } 361 352
