Changeset 3836616e546db5ccc27bf3112dc2812b56599104

Show
Ignore:
Timestamp:
11/12/07 17:31:20 (1 year ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1197390680 +0000
git-parent:

[cf7583364f221be6e5f1be21987d13d834bd5157]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1197390680 +0000
Message:

MacOSX/Framework/VLCMedia.m: Don't forget to init the metaDictionary, when initing from a media_descriptor object.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • extras/MacOSX/Framework/Sources/VLCMedia.m

    ra3633b8 r3836616  
    281281        p_md = md; 
    282282         
     283        metaDictionary = [[NSMutableDictionary alloc] initWithCapacity:3]; 
    283284        [self initInternalMediaDescriptor]; 
    284285    } 
     
    349350    libvlc_media_descriptor_set_user_data( p_md, (void*)self, &ex ); 
    350351    quit_on_exception( &ex ); 
    351      
     352 
    352353    libvlc_event_manager_t *p_em = libvlc_media_descriptor_event_manager( p_md, &ex ); 
    353354    libvlc_event_attach(p_em, libvlc_MediaDescriptorMetaChanged,     HandleMediaMetaChanged,     self, &ex); 
     
    378379 
    379380    if ( !(newValue && oldValue && [oldValue compare:newValue] == NSOrderedSame) ) 
    380     {         
     381    { 
    381382        if ([metaType isEqualToString:VLCMetaInformationArtworkURL]) 
    382383        { 
     
    386387            return; 
    387388        } 
     389 
    388390        @synchronized(metaDictionary) { 
    389             [metaDictionary setValue: newValue forKeyPath:metaType]; 
     391            [metaDictionary setValue:newValue forKeyPath:metaType]; 
    390392        } 
    391393    }