Commit 9d36c837 authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCMedia: deprecate synchronousParse and remove any internal use

parent c2245d52
......@@ -437,8 +437,10 @@ extern NSString *const VLCMediaTracksInformationTypeUnknown;
/**
* Trigger a synchronous parsing of the media
* the selector won't return until parsing finished
*
* \note Use parseWithOptions: instead
*/
- (void)synchronousParse;
- (void)synchronousParse __attribute__((deprecated));
enum {
......
......@@ -57,7 +57,7 @@ Deprecated APIs:
- VLCAudio
- setMute:
- VLCMedia
- parse, isParsed
- parse, isParsed, synchronousParse
- VLCMediaDiscoverer
- availableMediaDiscoverer, localizedName
- VLCMediaPlayer
......
......@@ -622,8 +622,10 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
- (NSArray *)tracksInformation
{
VLCMediaParsedStatus parsedStatus = [self parsedStatus];
if (parsedStatus == VLCMediaParsedStatusSkipped || parsedStatus == VLCMediaParsedStatusInit)
[self synchronousParse];
if (parsedStatus == VLCMediaParsedStatusSkipped || parsedStatus == VLCMediaParsedStatusInit) {
[self parseWithOptions:VLCMediaParseLocal|VLCMediaParseNetwork];
return @[];
}
libvlc_media_track_t **tracksInfo;
unsigned int count = libvlc_media_tracks_get(p_md, &tracksInfo);
......@@ -686,8 +688,10 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
#if TARGET_OS_IPHONE
// Trigger parsing if needed
VLCMediaParsedStatus parsedStatus = [self parsedStatus];
if (parsedStatus == VLCMediaParsedStatusSkipped || parsedStatus == VLCMediaParsedStatusInit)
[self synchronousParse];
if (parsedStatus == VLCMediaParsedStatusSkipped || parsedStatus == VLCMediaParsedStatusInit) {
[self parseWithOptions:VLCMediaParseLocal|VLCMediaParseNetwork];
sleep(2);
}
NSUInteger biggestWidth = 0;
NSUInteger biggestHeight = 0;
......
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