Commit 446151a9 authored by Felix Paul Kühne's avatar Felix Paul Kühne

playback controller: remove deprecated synchronous parse call

(cherry picked from commit bbd948eba43222cae87ef558ce55478f29b16b23)
parent 11da3fca
......@@ -123,6 +123,7 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
NSArray *tracksInfo = media.tracksInformation;
double width = 0.0, height = 0.0;
NSDictionary *track;
for (NSUInteger x = 0; x < tracksInfo.count; x++) {
track = tracksInfo[x];
if ([track[VLCMediaTracksInformationType] isEqualToString:VLCMediaTracksInformationTypeVideo]) {
......@@ -263,14 +264,15 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
VLCMedia *media;
if (_mediaList) {
media = [_mediaList mediaAtIndex:_itemInMediaListToBePlayedFirst];
[media parseWithOptions:VLCMediaParseLocal];
media.delegate = self;
} else {
media = [VLCMedia mediaWithURL:self.url];
media.delegate = self;
[media synchronousParse];
[media parseWithOptions:VLCMediaParseLocal];
[media addOptions:self.mediaOptionsDictionary];
}
if (self.mediaList) {
[_listPlayer setMediaList:self.mediaList];
} else {
......
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