⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 157982 in webkit


Ignore:
Timestamp:
Oct 24, 2013, 6:44:07 PM (13 years ago)
Author:
Lucas Forschler
Message:

Merged r154693. <rdar://problem/15109413>

Location:
branches/safari-537.73-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-537.73-branch/Source/WebCore/ChangeLog

    r157980 r157982  
     12013-10-24  Lucas Forschler  <lforschler@apple.com>
     2
     3        Merge r154693
     4
     5    2013-08-26  Brent Fulgham  <bfulgham@apple.com>
     6
     7            [Windows] some track language tags are not recognized
     8            https://bugs.webkit.org/show_bug.cgi?id=120335
     9
     10            Reviewed by Eric Carlson.
     11
     12            * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: Revise implementation
     13            to match logic in platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjc.mm
     14
    1152013-10-24  Lucas Forschler  <lforschler@apple.com>
    216
  • branches/safari-537.73-branch/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp

    r153718 r157982  
    842842        return;
    843843
     844    setDelayCharacteristicsChangedNotification(true);
     845
    844846    bool haveCCTrack = false;
    845847    bool hasCaptions = false;
    … …  
    915917    sizeChanged();
    916918
    917     if (!primaryAudioTrackLanguage.isNull() && primaryAudioTrackLanguage != languageOfPrimaryAudioTrack())
     919    if (primaryAudioTrackLanguage != languageOfPrimaryAudioTrack())
    918920        player()->characteristicChanged();
     921
     922    setDelayCharacteristicsChangedNotification(false);
    919923}
    920924
    … …  
    10951099    AVCFAssetTrackRef track = (AVCFAssetTrackRef)CFArrayGetValueAtIndex(tracks.get(), 0);
    10961100    RetainPtr<CFStringRef> language = adoptCF(AVCFAssetTrackCopyExtendedLanguageTag(track));
     1101
     1102    // If the language code is stored as a QuickTime 5-bit packed code there aren't enough bits for a full
     1103    // RFC 4646 language tag so extendedLanguageTag returns null. In this case languageCode will return the
     1104    // ISO 639-2/T language code so check it.
     1105    if (!language)
     1106        language = adoptCF(AVCFAssetTrackCopyLanguageCode(track));
    10971107
    10981108    // Some legacy tracks have "und" as a language, treat that the same as no language at all.
Note: See TracChangeset for help on using the changeset viewer.