Commit b8dfb66a authored by jer.noble@apple.com's avatar jer.noble@apple.com

Unreviewed Mac-Lion build fix.

Use metadataItemsFromArray:withLocale: instead of
metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:
on Lion and earlier.

* platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm:
(WebCore::AudioTrackPrivateAVFObjC::resetPropertiesFromTrack):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 876b8519
2013-09-30 Jer Noble <jer.noble@apple.com>
Unreviewed Mac-Lion build fix.
Use metadataItemsFromArray:withLocale: instead of
metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:
on Lion and earlier.
* platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm:
(WebCore::AudioTrackPrivateAVFObjC::resetPropertiesFromTrack):
2013-09-27 Jer Noble <jer.noble@apple.com>
[Mac] Add AudioTrack support to MediaPlayerPrivateAVFObC.
......@@ -93,7 +93,11 @@ void AudioTrackPrivateAVFObjC::resetPropertiesFromTrack()
NSArray *titles = [AVMetadataItem metadataItemsFromArray:[assetTrack commonMetadata] withKey:AVMetadataCommonKeyTitle keySpace:AVMetadataKeySpaceCommon];
if ([titles count]) {
// If possible, return a title in one of the user's preferred languages.
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
NSArray *titlesForPreferredLanguages = [AVMetadataItem metadataItemsFromArray:titles filteredAndSortedAccordingToPreferredLanguages:[NSLocale preferredLanguages]];
#else
NSArray *titlesForPreferredLanguages = [AVMetadataItem metadataItemsFromArray:titles withLocale:[NSLocale currentLocale]];
#endif
if ([titlesForPreferredLanguages count])
setLabel([[titlesForPreferredLanguages objectAtIndex:0] stringValue]);
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