Open media only once the video output is up (black video on X11 when joining mid-play)
media_kit sets vo=libmpv before the render context exists; an open in
between failed mpv's video output ("No render context set") and played
black with sound. Seen on X11 joining a server with media already up.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
741b258ac1
commit
9bbc594048
2 files changed
+20
-3
No files matched your search
@@ -550,6 +550,12 @@ set (M + S). A missing file, a path containing the list separator, a
|
||||
read-back mismatch, or an mpv `libmpv_render` error while shaders are on
|
||||
turns shaders off (saved) with a toast.
|
||||
|
||||
A player with a video output opens media only once that output is up:
|
||||
media_kit sets mpv's `vo=libmpv` before the output's render context
|
||||
exists, and a media opened in between gets no video output ("No render
|
||||
context set", black picture with sound). On X11 the context comes up
|
||||
later, which widens that gap (joining with media already up).
|
||||
|
||||
Render mode: media_kit's Linux/Windows video output creates mpv's render
|
||||
context (OpenGL, else its software renderer) when the `VideoController` is
|
||||
created, and nothing in its API says which. The host therefore requests
|
||||
|
||||
Reference in new issue
Block a user