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

playback controller: remove deprecated synchronous parse call

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