Changeset 3836616e546db5ccc27bf3112dc2812b56599104
- 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
| ra3633b8 |
r3836616 |
|
| 281 | 281 | p_md = md; |
|---|
| 282 | 282 | |
|---|
| | 283 | metaDictionary = [[NSMutableDictionary alloc] initWithCapacity:3]; |
|---|
| 283 | 284 | [self initInternalMediaDescriptor]; |
|---|
| 284 | 285 | } |
|---|
| … | … | |
| 349 | 350 | libvlc_media_descriptor_set_user_data( p_md, (void*)self, &ex ); |
|---|
| 350 | 351 | quit_on_exception( &ex ); |
|---|
| 351 | | |
|---|
| | 352 | |
|---|
| 352 | 353 | libvlc_event_manager_t *p_em = libvlc_media_descriptor_event_manager( p_md, &ex ); |
|---|
| 353 | 354 | libvlc_event_attach(p_em, libvlc_MediaDescriptorMetaChanged, HandleMediaMetaChanged, self, &ex); |
|---|
| … | … | |
| 378 | 379 | |
|---|
| 379 | 380 | if ( !(newValue && oldValue && [oldValue compare:newValue] == NSOrderedSame) ) |
|---|
| 380 | | { |
|---|
| | 381 | { |
|---|
| 381 | 382 | if ([metaType isEqualToString:VLCMetaInformationArtworkURL]) |
|---|
| 382 | 383 | { |
|---|
| … | … | |
| 386 | 387 | return; |
|---|
| 387 | 388 | } |
|---|
| | 389 | |
|---|
| 388 | 390 | @synchronized(metaDictionary) { |
|---|
| 389 | | [metaDictionary setValue: newValue forKeyPath:metaType]; |
|---|
| | 391 | [metaDictionary setValue:newValue forKeyPath:metaType]; |
|---|
| 390 | 392 | } |
|---|
| 391 | 393 | } |
|---|