Changeset 139615 in webkit


Ignore:
Timestamp:
Jan 14, 2013 8:33:45 AM (11 years ago)
Author:
eric.carlson@apple.com
Message:

Do not pass nil when initializing legible output
https://bugs.webkit.org/show_bug.cgi?id=106799

Reviewed by Jessie Berlin.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:

(WebCore::MediaPlayerPrivateAVFoundationObjC::tracksChanged): -[AVPlayerItemLegibleOutput initWithDependencyFactory:mediaSubtypesForNativeRepresentation:]

wants an empty NSArray rather than nil.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139614 r139615  
     12013-01-14  Eric Carlson  <eric.carlson@apple.com>
     2
     3        Do not pass nil when initializing legible output
     4        https://bugs.webkit.org/show_bug.cgi?id=106799
     5
     6        Reviewed by Jessie Berlin.
     7
     8        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     9        (WebCore::MediaPlayerPrivateAVFoundationObjC::tracksChanged): -[AVPlayerItemLegibleOutput initWithDependencyFactory:mediaSubtypesForNativeRepresentation:]
     10            wants an empty NSArray rather than nil.
     11
    1122013-01-14  Andrey Adaikin  <aandrey@chromium.org>
    213
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r138017 r139615  
    889889#if HAVE(AVFOUNDATION_TEXT_TRACK_SUPPORT)
    890890    if (m_avPlayerItem && !m_legibleOutput) {
    891         m_legibleOutput = adoptNS([[AVPlayerItemLegibleOutput alloc] initWithMediaSubtypesForNativeRepresentation:nil]);
     891        m_legibleOutput = adoptNS([[AVPlayerItemLegibleOutput alloc] initWithMediaSubtypesForNativeRepresentation:[NSArray array]]);
    892892        [m_legibleOutput.get() setSuppressesPlayerRendering:YES];
    893893
Note: See TracChangeset for help on using the changeset viewer.