Changeset 210730 in webkit
- Timestamp:
- Jan 13, 2017, 6:26:17 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r210696 r210730 1 2017-01-13 Eric Carlson <eric.carlson@apple.com> 2 3 REGRESSION (r210621): [mac-wk2] LayoutTest fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled.html timing out 4 https://bugs.webkit.org/show_bug.cgi?id=166980 5 6 Unreviewed, fix test broken by r210621. 7 8 * fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled-expected.txt: 9 * fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled.html: 10 * platform/mac-wk2/TestExpectations: Un-skip fixed test. 11 1 12 2017-01-12 Gyuyoung Kim <gyuyoung.kim@webkit.org> 2 13 -
trunk/LayoutTests/fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled-expected.txt
r203901 r210730 8 8 9 9 === beginning round of pixel tests === 10 PASS pixel was white10 PASS pixel was black 11 11 12 12 === all video tracks disabled === … … 20 20 21 21 === beginning round of pixel tests === 22 PASS pixel was white22 PASS pixel was black 23 23 24 24 === all video tracks disabled === -
trunk/LayoutTests/fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled.html
r203901 r210730 15 15 let mediaStream; 16 16 let video; 17 let havePlayed = false; 17 18 18 19 let buffer; … … 58 59 beginTestRound(); 59 60 } else 61 video.pause(); 60 62 finishJSTest(); 61 63 } … … 82 84 buffer = context.getImageData(30, 242, 1, 1).data; 83 85 84 if (mediaStream.getVideoTracks()[0].enabled )86 if (mediaStream.getVideoTracks()[0].enabled && havePlayed) 85 87 return isPixelWhite(buffer); 86 88 else … … 101 103 { 102 104 debug('<br> === beginning round of pixel tests ==='); 103 attempt(1, checkPixels, disableAllTracks, 'pixel was white');105 attempt(1, checkPixels, disableAllTracks, 'pixel was black'); 104 106 } 105 107 -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r210678 r210730 612 612 webkit.org/b/166765 [ Debug ] http/tests/pointer-lock/pointerlockelement-same-origin.html [ Crash ] 613 613 webkit.org/b/166765 [ Debug ] pointer-lock/lock-lost-on-alert.html [ Crash ] 614 615 webkit.org/b/166980 fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled.html [ Timeout ] -
trunk/Source/WebCore/ChangeLog
r210729 r210730 1 2017-01-13 Eric Carlson <eric.carlson@apple.com> 2 3 REGRESSION (r210621): [mac-wk2] LayoutTest fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled.html timing out 4 https://bugs.webkit.org/show_bug.cgi?id=166980 5 6 Unreviewed, fix test broken by r210621. 7 8 No new tests, updated fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled.html 9 and results. 10 11 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm: 12 (-[WebAVSampleBufferStatusChangeListener observeValueForKeyPath:ofObject:change:context:]): 13 Drive-by fix: null-check parent. 14 (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::layerStatusDidChange): Do nothing if the layer 15 has changed since the KVO notification. 16 1 17 2017-01-13 Carlos Garcia Campos <cgarcia@igalia.com> 2 18 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
r210621 r210730 162 162 163 163 callOnMainThread([protectedSelf = WTFMove(protectedSelf), layer = WTFMove(layer), status = WTFMove(status)] { 164 if (!protectedSelf->_parent) 165 return; 166 164 167 protectedSelf->_parent->layerStatusDidChange(layer.get(), status.get()); 165 168 }); … … 173 176 174 177 callOnMainThread([protectedSelf = WTFMove(protectedSelf), renderer = WTFMove(renderer), status = WTFMove(status)] { 178 if (!protectedSelf->_parent) 179 return; 180 175 181 protectedSelf->_parent->rendererStatusDidChange(renderer.get(), status.get()); 176 182 }); … … 493 499 void MediaPlayerPrivateMediaStreamAVFObjC::layerStatusDidChange(AVSampleBufferDisplayLayer* layer, NSNumber* status) 494 500 { 495 ASSERT_UNUSED(layer, layer == m_sampleBufferDisplayLayer); 496 ASSERT(m_activeVideoTrack); 497 if (status.integerValue == AVQueuedSampleBufferRenderingStatusRendering) 498 m_videoTrackMap.get(m_activeVideoTrack->id())->setTimelineOffset(MediaTime::invalidTime()); 501 if (status.integerValue != AVQueuedSampleBufferRenderingStatusRendering) 502 return; 503 504 if (layer != m_sampleBufferDisplayLayer || !m_activeVideoTrack) 505 return; 506 507 auto track = m_videoTrackMap.get(m_activeVideoTrack->id()); 508 if (track) 509 track->setTimelineOffset(MediaTime::invalidTime()); 499 510 } 500 511
Note:
See TracChangeset
for help on using the changeset viewer.