[webkit-changes] [WebKit/WebKit] cac194: [GStreamer] Fix mock video sources observed framer...

Philippe Normand noreply at github.com
Thu Jan 9 02:42:56 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cac194f74a21e0c7e551df670e47974a186e69cb
      https://github.com/WebKit/WebKit/commit/cac194f74a21e0c7e551df670e47974a186e69cb
  Author: Philippe Normand <philn at igalia.com>
  Date:   2025-01-09 (Thu, 09 Jan 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp

  Log Message:
  -----------
  [GStreamer] Fix mock video sources observed framerate display
https://bugs.webkit.org/show_bug.cgi?id=285301

Reviewed by Xabier Rodriguez-Calvar.

The observed framerate is computed using frames PTS values, but the frames constructed by the mock
sources had invalid PTS values. Fix this by using the buffer PTS in case an invalid timestamp was
passed to the create() functions. This was done already for createWrappedSample() but not for the
create() function.

* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp:
(WebCore::presentationTimeFromSample):
(WebCore::VideoFrameGStreamer::create):
(WebCore::VideoFrameGStreamer::createWrappedSample):

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