Nimbin[12]?Web & Tools / Browser / webkit-videorate-skip-to-first.patch

Browser git · main

Minimal browser in C (mini and big variant)

browser c · first commit 2026-08-25 · last commit 2026-10-05 (4 days ago) · synced 3 days ago · upstream: github.com/nimbin2/Browser

C 95.8% Markdown 3.9%
git clone https://git.christianimmanuel.de/web-tools/Browser.gitwget https://git.christianimmanuel.de/web-tools/Browser/archive/Browser.tar.gz
webkit-videorate-skip-to-first.patch 807 B · 13 lines raw
--- a/Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCapturer.cpp
+++ b/Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCapturer.cpp
@@ -135,6 +135,10 @@
 
     auto* bin = gst_bin_new(nullptr);
     auto* videorate = makeGStreamerElement("videorate"_s, "videorate"_s);
+    // The capture pipeline runs with base time 0, so buffer PTS are absolute
+    // CLOCK_MONOTONIC values. Without skip-to-first, videorate fills the gap
+    // from segment start with uptime x fps duplicate frames (WebKit PR 74373).
+    g_object_set(videorate, "skip-to-first", TRUE, nullptr);
 
     // The workaround below doesn't seem necessary anymore in GStreamer 1.28 and beyond.
     // Fixed by: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/6f623af4d745efaacd0c8639b99536def4a65c78