Changeset 202482 in webkit
- Timestamp:
- Jun 27, 2016 2:21:51 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r202480 r202482 1 2016-06-27 Philippe Normand <philn@igalia.com> 2 3 [GStreamer] top/bottom black bars added needlessly in fullscreen 4 https://bugs.webkit.org/show_bug.cgi?id=158980 5 6 Reviewed by Carlos Garcia Campos. 7 8 The natural video size calculation depends on the validity of the 9 current sample, so whenever the first sample reached the sink it's a 10 good idea to reflect this on the player which will update its natural 11 size accordingly. 12 13 Fixes an issue where black borders were added on top and bottom of 14 fullscreen video. 15 16 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: 17 (WebCore::MediaPlayerPrivateGStreamerBase::triggerRepaint): 18 1 19 2016-06-27 Youenn Fablet <youenn@apple.com> 2 20 -
trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
r202272 r202482 535 535 void MediaPlayerPrivateGStreamerBase::triggerRepaint(GstSample* sample) 536 536 { 537 bool triggerResize; 537 538 { 538 539 WTF::GMutexLocker<GMutex> lock(m_sampleMutex); 540 triggerResize = !m_sample; 539 541 m_sample = sample; 542 } 543 544 if (triggerResize) { 545 LOG_MEDIA_MESSAGE("First sample reached the sink, triggering video dimensions update"); 546 m_player->sizeChanged(); 540 547 } 541 548
Note: See TracChangeset
for help on using the changeset viewer.