Changeset 93047 in webkit


Ignore:
Timestamp:
Aug 15, 2011, 10:41:34 AM (14 years ago)
Author:
jeffm@apple.com
Message:

MediaPlayerPrivateAVFoundationCF::playerItemStatus() should return MediaPlayerAVPlayerItemStatusDoesNotExist if there is no AVPlayerItem
https://bugs.webkit.org/show_bug.cgi?id=66171

MediaPlayerPrivateAVFoundationCF::playerItemStatus() should return MediaPlayerAVPlayerItemStatusDoesNotExist if there is no AVPlayerItem
to match the Mac implementation in MediaPlayerPrivateAVFoundationObjC. I also added better logging to notificationCallback().

Reviewed by Jon Honeycutt.

No new tests, uses existing media tests.

  • platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationCF.cpp:

(WebCore::MediaPlayerPrivateAVFoundationCF::playerItemStatus): Return MediaPlayerAVPlayerItemStatusDoesNotExist if no AVPlayerItem.
(WebCore::AVFWrapper::notificationCallback): Log the name of the received notification.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r93043 r93047  
     12011-08-12  Jeff Miller  <jeffm@apple.com>
     2
     3        MediaPlayerPrivateAVFoundationCF::playerItemStatus() should return MediaPlayerAVPlayerItemStatusDoesNotExist if there is no AVPlayerItem
     4        https://bugs.webkit.org/show_bug.cgi?id=66171
     5       
     6        MediaPlayerPrivateAVFoundationCF::playerItemStatus() should return MediaPlayerAVPlayerItemStatusDoesNotExist if there is no AVPlayerItem
     7        to match the Mac implementation in MediaPlayerPrivateAVFoundationObjC.  I also added better logging to notificationCallback().
     8
     9        Reviewed by Jon Honeycutt.
     10
     11        No new tests, uses existing media tests.
     12
     13        * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationCF.cpp:
     14        (WebCore::MediaPlayerPrivateAVFoundationCF::playerItemStatus): Return MediaPlayerAVPlayerItemStatusDoesNotExist if no AVPlayerItem.
     15        (WebCore::AVFWrapper::notificationCallback): Log the name of the received notification.
     16
    1172011-08-15  Adam Roben  <aroben@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationCF.cpp

    r92977 r93047  
    389389{
    390390    if (!avPlayerItem(m_avfWrapper))
    391         return MediaPlayerPrivateAVFoundation::MediaPlayerAVPlayerItemStatusUnknown;
     391        return MediaPlayerPrivateAVFoundation::MediaPlayerAVPlayerItemStatusDoesNotExist;
    392392
    393393    AVCFPlayerItemStatus status = AVCFPlayerItemGetStatus(avPlayerItem(m_avfWrapper), 0);
     
    10421042    }
    10431043
    1044     LOG(Media, "AVFWrapper::notificationCallback(%p)", self);
     1044#if !LOG_DISABLED
     1045    char notificationName[256];
     1046    CFStringGetCString(propertyName, notificationName, sizeof(notificationName), kCFStringEncodingASCII);
     1047    LOG(Media, "AVFWrapper::notificationCallback(%p) %s", self, notificationName);
     1048#endif
    10451049
    10461050    if (CFEqual(propertyName, AVCFPlayerItemDidPlayToEndTimeNotification))
Note: See TracChangeset for help on using the changeset viewer.