Changeset 276701 in webkit
- Timestamp:
- Apr 28, 2021, 2:36:43 AM (5 years ago)
- Location:
- releases/WebKitGTK/webkit-2.32
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/media/media-source/media-source-no-preload-set-duration-crash-expected.txt (added)
-
LayoutTests/media/media-source/media-source-no-preload-set-duration-crash.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/gstreamer/mse/PlaybackPipeline.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.32/LayoutTests/ChangeLog
r275028 r276701 1 2021-04-12 Philippe Normand <pnormand@igalia.com> 2 3 [MSE][GStreamer] Crash in WebCore::PlaybackPipeline::addSourceBuffer when setting duration and preload is set to none 4 https://bugs.webkit.org/show_bug.cgi?id=224260 5 6 Reviewed by Xabier Rodriguez-Calvar. 7 8 * media/media-source/media-source-no-preload-set-duration-crash-expected.txt: Added. 9 * media/media-source/media-source-no-preload-set-duration-crash.html: Added. 10 1 11 2021-03-24 Philippe Normand <pnormand@igalia.com> 2 12 -
releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog
r276173 r276701 1 2021-04-12 Philippe Normand <pnormand@igalia.com> 2 3 [MSE][GStreamer] Crash in WebCore::PlaybackPipeline::addSourceBuffer when setting duration and preload is set to none 4 https://bugs.webkit.org/show_bug.cgi?id=224260 5 6 Reviewed by Xabier Rodriguez-Calvar. 7 8 Disable delayed loading for the GStreamer MSE player, we want the MSE source element to be 9 configured ASAP, otherwise the playback pipeline will fail in various ways (duration 10 notifications sent too early, crashes in addSourceBuffer, crashes in attachTracks, and so 11 on). 12 13 Test: media/media-source/media-source-no-preload-set-duration-crash.html 14 15 * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: 16 (WebCore::MediaPlayerPrivateGStreamerMSE::durationChanged): 17 1 18 2021-04-16 Adrian Perez de Castro <aperez@igalia.com> 2 19 -
releases/WebKitGTK/webkit-2.32/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
r273309 r276701 357 357 358 358 GST_DEBUG_OBJECT(pipeline(), "preload: %s", convertEnumerationToString(m_preload).utf8().data()); 359 if (m_preload == MediaPlayer::Preload::None ) {359 if (m_preload == MediaPlayer::Preload::None && !isMediaSource()) { 360 360 GST_INFO_OBJECT(pipeline(), "Delaying load."); 361 361 m_isDelayingLoad = true; -
releases/WebKitGTK/webkit-2.32/Source/WebCore/platform/graphics/gstreamer/mse/PlaybackPipeline.cpp
r275027 r276701 104 104 MediaSourcePrivate::AddStatus PlaybackPipeline::addSourceBuffer(RefPtr<SourceBufferPrivateGStreamer> sourceBufferPrivate) 105 105 { 106 ASSERT(m_webKitMediaSrc); 106 107 WebKitMediaSrcPrivate* priv = m_webKitMediaSrc->priv; 107 108 … … 259 260 void PlaybackPipeline::notifyDurationChanged() 260 261 { 262 ASSERT(m_webKitMediaSrc); 261 263 gst_element_post_message(GST_ELEMENT(m_webKitMediaSrc.get()), gst_message_new_duration_changed(GST_OBJECT(m_webKitMediaSrc.get()))); 262 264 // WebKitMediaSrc will ask MediaPlayerPrivateGStreamerMSE for the new duration later, when somebody asks for it.
Note:
See TracChangeset
for help on using the changeset viewer.