Commit 8d1fa3f4 authored by Felix Paul Kühne's avatar Felix Paul Kühne

movie view: fix media item playback after media list

parent 44cd3745
......@@ -76,6 +76,7 @@
@property (nonatomic, strong) MLFile *mediaItem;
@property (nonatomic, strong) NSURL *url;
@property (nonatomic, retain) VLCMediaList *mediaList;
@property (nonatomic, retain) NSArray *filesForMediaList;
@property (nonatomic, readwrite) NSUInteger itemInMediaListToBePlayedFirst;
- (IBAction)closePlayback:(id)sender;
......
......@@ -385,10 +385,11 @@
self.artistNameLabel.text = item.albumTrack.artist;
self.albumNameLabel.text = item.albumTrack.album.name;
} else
self.trackNameLabel.text = self.artistNameLabel.text = self.albumNameLabel.text = @"";
self.artistNameLabel.text = self.albumNameLabel.text = @"";
}
} else if (!self.mediaList)
media = [VLCMedia mediaWithURL:self.url];
self.trackNameLabel.text = [[media url] lastPathComponent];
NSMutableDictionary *mediaDictionary = [[NSMutableDictionary alloc] init];
......@@ -584,6 +585,10 @@
}
if (_mediaItem)
_mediaItem = nil;
if (_mediaList)
_mediaList = nil;
if (_url)
_url = nil;
_playerIsSetup = NO;
}
......
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