Commit 9700ec80 authored by Felix Paul Kühne's avatar Felix Paul Kühne

media discoverer: deprecate localizedName

parent 5c5e9a24
......@@ -98,7 +98,7 @@ extern NSString *const VLCMediaDiscovererCategory;
/**
* returns the localized name of the discovery module if available, otherwise in US English
*/
@property (readonly, copy) NSString *localizedName;
@property (readonly, copy) NSString *localizedName __attribute__((deprecated));
/**
* read-only property to check if the discovery service is active
......
......@@ -57,7 +57,7 @@ Deprecated APIs:
- VLCMedia
- parse, isParsed
- VLCMediaDiscoverer
- availableMediaDiscoverer
- availableMediaDiscoverer, localizedName
- VLCMediaPlayer
- titles, chaptersForTitleIndex:, countOfTitles, framesPerSecond, openVideoSubTitlesFromFile:
......
......@@ -40,7 +40,7 @@ NSString *const VLCMediaDiscovererCategory = @"VLCMediaDiscovererCategory";
{
NSString *_localizedName;
VLCMediaList *_discoveredMedia;
void *_mdis;
libvlc_media_discoverer_t *_mdis;
VLCLibrary *_privateLibrary;
}
......@@ -157,6 +157,8 @@ NSString *const VLCMediaDiscovererCategory = @"VLCMediaDiscovererCategory";
- (NSString *)localizedName
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
if (_localizedName)
return _localizedName;
......@@ -166,6 +168,7 @@ NSString *const VLCMediaDiscovererCategory = @"VLCMediaDiscovererCategory";
free(name);
}
return _localizedName;
#pragma clang diagnostic pop
}
- (BOOL)isRunning
......
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