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

Changeset 154693 in webkit


Ignore:
Timestamp:
Aug 27, 2013, 8:55:21 AM (13 years ago)
Author:
Brent Fulgham
Message:

[Windows] some track language tags are not recognized
​https://bugs.webkit.org/show_bug.cgi?id=120335

Reviewed by Eric Carlson.

  • platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: Revise implementation

to match logic in platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjc.mm

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r154692 r154693  
     12013-08-26  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [Windows] some track language tags are not recognized
     4        https://bugs.webkit.org/show_bug.cgi?id=120335
     5
     6        Reviewed by Eric Carlson.
     7
     8        * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: Revise implementation
     9        to match logic in platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjc.mm
     10
    1112013-08-27  Andreas Kling  <akling@apple.com>
    212
  • trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp

    r153628 r154693  
    850850        return;
    851851
     852    setDelayCharacteristicsChangedNotification(true);
     853
    852854    bool haveCCTrack = false;
    853855    bool hasCaptions = false;
    … …  
    923925    sizeChanged();
    924926
    925     if (!primaryAudioTrackLanguage.isNull() && primaryAudioTrackLanguage != languageOfPrimaryAudioTrack())
     927    if (primaryAudioTrackLanguage != languageOfPrimaryAudioTrack())
    926928        player()->characteristicChanged();
     929
     930    setDelayCharacteristicsChangedNotification(false);
    927931}
    928932
    … …  
    11051109    AVCFAssetTrackRef track = (AVCFAssetTrackRef)CFArrayGetValueAtIndex(tracks.get(), 0);
    11061110    RetainPtr<CFStringRef> language = adoptCF(AVCFAssetTrackCopyExtendedLanguageTag(track));
     1111
     1112    // If the language code is stored as a QuickTime 5-bit packed code there aren't enough bits for a full
     1113    // RFC 4646 language tag so extendedLanguageTag returns null. In this case languageCode will return the
     1114    // ISO 639-2/T language code so check it.
     1115    if (!language)
     1116        language = adoptCF(AVCFAssetTrackCopyLanguageCode(track));
    11071117
    11081118    // 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.