Commit c721ebfa authored by Felix Paul Kühne's avatar Felix Paul Kühne

Media: only sync parse if really needed

(cherry picked from commit 170b9c7a)
parent 44a7ffd4
......@@ -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);
......
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