Signed-off-by: Pierre d'Herbemont <pdherbemont@free.fr>
NSMutableArray * cachedMedia; //< Private copy of media objects.
}
+/**
+ * Init a MediaList with the media contained in array.
+ * \array an array of VLCMedia.
+ */
+- (id)initWithArray:(NSArray *)array;
+
/* Operations */
/**
* TODO: Documentation - [VLCMediaList lock]
return self;
}
+- (id)initWithArray:(NSArray *)array
+{
+ self = [self init];
+ if (!self)
+ return nil;
+
+ for (VLCMedia *media in array)
+ [self addMedia:media];
+ return self;
+}
+
- (void)release
{
@synchronized(self)