Skip to content
Snippets Groups Projects
Commit 170b9c7a authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Media: only sync parse if really needed

parent 838f2598
No related branches found
No related tags found
No related merge requests found
......@@ -597,7 +597,8 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
- (NSArray *)tracksInformation
{
[self synchronousParse];
if (!self.isParsed)
[self synchronousParse];
libvlc_media_track_t **tracksInfo;
unsigned int count = libvlc_media_tracks_get(p_md, &tracksInfo);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment