Changeset 1023

Show
Ignore:
Timestamp:
10/21/07 12:38:05 (15 months ago)
Author:
stephen_booth
Message:

Cleaned up

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Audio/Properties/WavPackPropertiesReader.m

    r868 r1023  
    2727- (BOOL) readProperties:(NSError **)error 
    2828{ 
    29         NSMutableDictionary             *propertiesDictionary; 
    30         NSString                                *path; 
    31     WavpackContext                      *wpc; 
    32         char                                    errorMsg [80]; 
     29        NSString *path = [[self valueForKey:StreamURLKey] path]; 
    3330 
    34         path = [[self valueForKey:StreamURLKey] path]; 
    35  
    36         wpc = WavpackOpenFileInput([path fileSystemRepresentation], errorMsg, 0, 0); 
     31        char errorMsg [80]; 
     32        WavpackContext *wpc = WavpackOpenFileInput([path fileSystemRepresentation], errorMsg, 0, 0); 
    3733        if(NULL == wpc) { 
    3834                if(nil != error) { 
     
    5147        } 
    5248         
    53         propertiesDictionary = [NSMutableDictionary dictionary]; 
     49        NSMutableDictionary *propertiesDictionary = [NSMutableDictionary dictionary]; 
    5450 
    5551        [propertiesDictionary setValue:NSLocalizedStringFromTable(@"WavPack", @"Formats", @"") forKey:PropertiesFileTypeKey];