Commit 7d084fff authored by Felix Paul Kühne's avatar Felix Paul Kühne

playback: implement lookup of MLFiles from a media list

parent 29caa7fc
......@@ -183,13 +183,12 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
MLFile *mediaFile = self.fileFromMediaLibrary;
if (mediaFile) {
return mediaFile;
} else if (self.mediaList) {
NSArray *results = [MLFile fileForURL:_mediaPlayer.media.url.absoluteString];
if (results.count > 0)
return results[0];
}
// VLCMediaList *mediaList = self.mediaList;
// if (mediaList) {
// TODO: get current MLFile ?
// }
return nil;
}
......
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