[webkit-changes] [WebKit/WebKit] 32a477: [WPE][GTK] default currentTime is NaN

Jean-Yves Avenard noreply at github.com
Thu Sep 26 16:14:41 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 32a477e91d097237e4464ea7612cf47d75292a00
      https://github.com/WebKit/WebKit/commit/32a477e91d097237e4464ea7612cf47d75292a00
  Author: Jean-Yves Avenard <jya at apple.com>
  Date:   2024-09-26 (Thu, 26 Sep 2024)

  Changed paths:
    M Source/WebCore/Modules/mediasource/ManagedMediaSource.cpp
    M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
    M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h

  Log Message:
  -----------
  [WPE][GTK] default currentTime is NaN
https://bugs.webkit.org/show_bug.cgi?id=280337

Reviewed by Philippe Normand.

Follow-up on 284149 at main.
Make currentTime initialized to MediaTime::zeroTime() and remove all path where invalidTime could be returned.

* Source/WebCore/Modules/mediasource/ManagedMediaSource.cpp:
(WebCore::ManagedMediaSource::monitorSourceBuffers): Remove workaround test that currentTime wasn't invalid.
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::play):
(WebCore::MediaPlayerPrivateGStreamer::currentTime const):
(WebCore::MediaPlayerPrivateGStreamer::handleMessage):
(WebCore::MediaPlayerPrivateGStreamer::performTaskAtTime):
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:

Canonical link: https://commits.webkit.org/284322@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