Changeset 86163 in webkit
- Timestamp:
- May 10, 2011 10:08:10 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86160 r86163 1 2011-05-10 Eric Carlson <eric.carlson@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Files that load quickly sometimes won't play. 6 https://bugs.webkit.org/show_bug.cgi?id=60556 7 <rdar://problem/9330567> 8 9 No new tests, this failure is very difficult to reproduce on some machines. The fix was 10 verified manually. 11 12 * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: 13 (WebCore::MediaPlayerPrivateAVFoundation::playabilityKnown): Move the call to updateStates 14 to dispatchNotification so it is more obvious which state changes call it. 15 (WebCore::MediaPlayerPrivateAVFoundation::setNaturalSize): Correct logging typo. 16 (WebCore::MediaPlayerPrivateAVFoundation::metadataLoaded): Move updateStates call to 17 dispatchNotification. 18 (WebCore::MediaPlayerPrivateAVFoundation::rateChanged): Ditto. 19 (WebCore::MediaPlayerPrivateAVFoundation::loadedTimeRangesChanged): Ditto. 20 (WebCore::MediaPlayerPrivateAVFoundation::dispatchNotification): Call updateStates after 21 processing "size changed" notification so we detect all state changes. Consolidate 22 calls to updateStates here. 23 24 * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.mm: 25 (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoLayer): Name the video layer in 26 a debug build. 27 1 28 2011-05-10 Abhishek Arya <inferno@chromium.org> 2 29 -
trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
r85913 r86163 191 191 LOG(Media, "MediaPlayerPrivateAVFoundation::playabilityKnown(%p)", this); 192 192 193 updateStates();194 193 if (m_assetIsPlayable) 195 194 return; … … 306 305 void MediaPlayerPrivateAVFoundation::setNaturalSize(IntSize size) 307 306 { 308 LOG(Media, "MediaPlayerPrivateAVFoundation:s izeChanged(%p) - size = %d x %d", this, size.width(), size.height());307 LOG(Media, "MediaPlayerPrivateAVFoundation:setNaturalSize(%p) - size = %d x %d", this, size.width(), size.height()); 309 308 310 309 IntSize oldSize = m_cachedNaturalSize; … … 506 505 m_loadingMetadata = false; 507 506 tracksChanged(); 508 updateStates();509 507 } 510 508 511 509 void MediaPlayerPrivateAVFoundation::rateChanged() 512 510 { 513 updateStates();514 511 m_player->rateChanged(); 515 512 } … … 519 516 m_cachedLoadedTimeRanges = 0; 520 517 m_cachedMaxTimeLoaded = 0; 521 updateStates();522 518 523 519 // For some media files, reported duration is estimated and updated as media is loaded … … 728 724 case Notification::ItemSeekableTimeRangesChanged: 729 725 seekableTimeRangesChanged(); 726 updateStates(); 730 727 break; 731 728 case Notification::ItemLoadedTimeRangesChanged: 732 729 loadedTimeRangesChanged(); 730 updateStates(); 733 731 break; 734 732 case Notification::ItemPresentationSizeChanged: … … 746 744 break; 747 745 case Notification::PlayerRateChanged: 746 updateStates(); 748 747 rateChanged(); 749 748 break; … … 756 755 case Notification::AssetMetadataLoaded: 757 756 metadataLoaded(); 757 updateStates(); 758 758 break; 759 759 case Notification::AssetPlayabilityKnown: 760 updateStates(); 760 761 playabilityKnown(); 761 762 break; -
trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.mm
r85918 r86163 221 221 m_videoLayer.adoptNS([[AVPlayerLayer alloc] init]); 222 222 [m_videoLayer.get() setPlayer:m_avPlayer.get()]; 223 #ifndef NDEBUG 224 [m_videoLayer.get() setName:@"Video layer"]; 225 #endif 223 226 LOG(Media, "MediaPlayerPrivateAVFoundationObjC::createVideoLayer(%p) - returning %p", this, m_videoLayer.get()); 224 227 }
Note: See TracChangeset
for help on using the changeset viewer.