Commit 628f5dd4 authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCMediaList: re-add initWithArray

parent 5ec02d52
......@@ -58,6 +58,8 @@ extern NSString * VLCMediaListItemDeleted;
NSMutableArray * cachedMedia; //< Private copy of media objects.
}
- (id)initWithArray:(NSArray *)array;
/* Operations */
/**
* TODO: Documentation - [VLCMediaList lock]
......
......@@ -82,6 +82,19 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
cachedMedia = [[NSMutableArray alloc] init];
[self initInternalMediaList];
}
return self;
}
- (id)initWithArray:(NSArray *)array
{
if (self = [self init]) {
/* do something useful with the provided array */
NSUInteger count = [array count];
for (NSUInteger x = 0; x < count; x++)
[self addMedia:array[x]];
}
return self;
}
......
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