Vendor media_kit_video 2.0.1 with the X11/EGL fix (hardware rendering on X11 with Flutter >= 3.38)
ci / core (push) Successful in 28s
ci / server (push) Successful in 51s
ci / updater-windows (push) Failing after 5m59s

Flutter >= 3.38 keeps its EGL contexts on the raster thread, so
media_kit's video output found none on the platform thread and fell
back to software rendering (no shaders, ~5 fps) on X11. The patched
output opens Flutter's EGL display itself, steps GDK's GLX context aside
on X11 and releases its own context. Patch from a friend's agent, kept
in third_party/media_kit_video/starsync/. Wayland/NVIDIA still renders
on the GPU (checked); the X11 path was verified on the friend's machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
foxyzandClaude Opus 5.5 committed 2026-10-16 01:13:14 +03:00
1 parent 25b19f2d6a
commit a87ee98faa
131 files changed
+15532 -6

No files matched your search

+3 -4
View File
@@ -538,10 +538,9 @@ packages:
media_kit_video:
dependency: "direct main"
description:
name: media_kit_video
sha256: afaa509e7b7e0bf247557a3a740cde903a52c34ace9810f94500e127bd7b043d
url: "https://pub.dev"
source: hosted
path: "../../third_party/media_kit_video"
relative: true
source: path
version: "2.0.1"
meta:
dependency: transitive
+3 -1
View File
@@ -10,7 +10,9 @@ dependencies:
sdk: flutter
signals: ^7.0.0
media_kit: ^1.1.0
media_kit_video: ^2.0.1
# Vendored with Starsync's patches (third_party/media_kit_video/starsync).
media_kit_video:
path: ../../third_party/media_kit_video
media_kit_libs_video: ^1.0.0
path_provider: ^2.1.0
web_socket_channel: ^3.0.0