Commit 3836616e authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCMedia.m: Don't forget to init the metaDictionary, when...

MacOSX/Framework/VLCMedia.m: Don't forget to init the metaDictionary, when initing from a media_descriptor object.
parent cf758336
......@@ -280,6 +280,7 @@ static void HandleMediaDurationChanged(const libvlc_event_t *event, void *self)
libvlc_media_descriptor_retain( md );
p_md = md;
metaDictionary = [[NSMutableDictionary alloc] initWithCapacity:3];
[self initInternalMediaDescriptor];
}
return self;
......@@ -385,8 +386,9 @@ static void HandleMediaDurationChanged(const libvlc_event_t *event, void *self)
withObject:newValue];
return;
}
@synchronized(metaDictionary) {
[metaDictionary setValue: newValue forKeyPath:metaType];
[metaDictionary setValue:newValue forKeyPath:metaType];
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment