[webkit-changes] [WebKit/WebKit] efcd4a: [GStreamer][MSE] Avoid adding redundant tracks to ...

Vivienne noreply at github.com
Tue Mar 4 06:04:21 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: efcd4ab82387046eaa2a8534c34e085d32c41a25
      https://github.com/WebKit/WebKit/commit/efcd4ab82387046eaa2a8534c34e085d32c41a25
  Author: Vivienne Watermeier <vwatermeier at igalia.com>
  Date:   2025-03-04 (Tue, 04 Mar 2025)

  Changed paths:
    M LayoutTests/media/media-source/media-source-vttsimple-expected.txt
    M LayoutTests/media/media-source/media-source-vttsimple.html
    M LayoutTests/media/media-source/media-source-webm-expected.txt
    M LayoutTests/media/media-source/media-source-webm.html
    M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

  Log Message:
  -----------
  [GStreamer][MSE] Avoid adding redundant tracks to MediaPlayer
https://bugs.webkit.org/show_bug.cgi?id=288974

Reviewed by Alicia Boya Garcia.

In MSE, WebKit already adds tracks to the HTMLMediaElement and the SourceBuffer in
SourceBuffer::sourceBufferPrivateDidReceiveInitializationSegment, so we need to
avoid adding each Track again in updateTracks.

* LayoutTests/media/media-source/media-source-vttsimple-expected.txt:
* LayoutTests/media/media-source/media-source-vttsimple.html: Explicitly test for the number of tracks.
* LayoutTests/media/media-source/media-source-webm-expected.txt:
* LayoutTests/media/media-source/media-source-webm.html: Ditto.
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::updateTracks): Don't add Tracks to MediaPlayer if in MSE.

Canonical link: https://commits.webkit.org/291559@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list