Commit 18f5e18a authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCMedia: fix KVC violations introduced in 5f600938

parent 3a538105
......@@ -58,18 +58,18 @@ NSString *const VLCMediaMetaChanged = @"VLCMediaMetaChanged";
/******************************************************************************
* VLCMedia ()
*/
@interface VLCMedia ()
@interface VLCMedia()
{
void * p_md; //< Internal media descriptor instance
BOOL isArtFetched; //< Value used to determine of the artwork has been parsed
BOOL areOthersMetaFetched; //< Value used to determine of the other meta has been parsed
BOOL isArtURLFetched; //< Value used to determine of the other meta has been preparsed
BOOL isParsed;
void * p_md; //< Internal media descriptor instance
BOOL isArtFetched; //< Value used to determine of the artwork has been parsed
BOOL areOthersMetaFetched; //< Value used to determine of the other meta has been parsed
BOOL isArtURLFetched; //< Value used to determine of the other meta has been preparsed
BOOL isParsed;
NSMutableDictionary *_metaDictionary;
}
/* Make our properties internally readwrite */
@property (nonatomic, readwrite) VLCMediaState state;
@property (nonatomic, readwrite, copy) NSDictionary *metaDictionary;
@property (nonatomic, readwrite, strong) VLCMediaList * subitems;
/* Statics */
......@@ -885,6 +885,11 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
#else
- (NSDictionary *)metaDictionary
{
return [NSDictionary dictionaryWithDictionary:_metaDictionary];
}
- (id)valueForKeyPath:(NSString *)keyPath
{
if (!isArtFetched && [keyPath isEqualToString:@"metaDictionary.artwork"]) {
......@@ -937,7 +942,7 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
libvlc_media_retain(md);
p_md = md;
self.metaDictionary = [[NSMutableDictionary alloc] initWithCapacity:3];
_metaDictionary = [[NSMutableDictionary alloc] initWithCapacity:3];
[self initInternalMediaDescriptor];
}
......
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