Show
Ignore:
Timestamp:
02/24/2010 06:40:01 PM (2 years ago)
Author:
gbooker
Message:

Corrected some issues with video_ts importing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/PlayerFramework/SapphireFrappliance/MetaDataImporting/SapphireVideoTSParser.m

    r913 r1170  
    2424// Instead of declaring them in the header, we declare them here in a category that extends the class. 
    2525 
    26 @interface SapphireVideoTsParser (InternalMethods) 
     26@interface SapphireVideoTsParser () 
    2727 
    2828/*! 
     
    7676#define vts_VideoIsWidescreen(attrs)                 ( attrs[0] & 0x0c) 
    7777 
    78 #define vts_AudioIsDTS(attrs)                        ((attrs[0] & 0xe0) == 0x0c) 
     78#define vts_AudioIsDTS(attrs)                        ((attrs[0] & 0xe0) == 0xc0) 
    7979#define vts_AudioIsSurround(attrs)                   ( attrs[0] & 0x02) 
    8080#define vts_AudioIsCommentary(attrs)                 ( attrs[5] >    1) 
     
    100100static NSString *languageFromEncodedChars( const char firstChar, const char secondChar ) 
    101101{ 
    102         static NSLocale *currentLocale = nil; 
     102        NSLocale *currentLocale = [NSLocale currentLocale]; 
    103103        const char       langCode[]    = { firstChar, secondChar, 0 }; 
    104104         
    105         if( currentLocale == nil ) 
    106                 currentLocale = [NSLocale currentLocale]; 
    107  
    108105        return [currentLocale displayNameForKey:NSLocaleLanguageCode 
    109106                                                                          value:[NSString stringWithCString:langCode encoding:NSASCIIStringEncoding]]; 
     
    319316                audio = commaSeparatedStringFromCollection( audioList ); 
    320317        } 
    321  
    322         if( audio == nil ) 
    323                 audio = BRLocalizedString( @"Not specified", @"No Audio information available for a DVD" );; 
    324318} 
    325319 
     
    355349                subtitles = commaSeparatedStringFromCollection( subtitleList ); 
    356350        } 
    357  
    358         if( subtitles == nil ) 
    359                 subtitles = BRLocalizedString( @"None", @"No Subtitle information available for a DVD" ); 
    360351} 
    361352