Skip to content

0.5.1

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Oct 17:45
· 27 commits to main since this release
v0.5.1
aef79a3

MediaMP 0.5.1 fixes black video in the desktop mpv backend on Windows hybrid-GPU and non-Direct3D setups, renders desktop screenshots at the video's native size, and hardens the mpv JNI layer.

Desktop MPV fixes

  • Windows, hybrid GPUs: mpv's D3D11 device is now created on the same adapter as Skia's D3D12 device. It used to be created on the system default adapter, so when Skiko picked another GPU (skiko.gpu.priority, the per-app GPU preference, or the NVIDIA Control Panel), the shared textures could not be opened and the video stayed black. If the device cannot be created on Skia's adapter, the old default adapter → WARP order is used, and the log names both adapters (#79).
  • Windows: Skiko's software and ANGLE redrawers now get video through a D3D11 CPU readback path instead of failing with Unsupported Skiko redrawer and a black video. Skiko falls back to software rendering when D3D12 is unavailable, which is common on Windows ARM64, over Remote Desktop and in VMs (#79).
  • Screenshots taken through the Screenshots feature now render the current frame at the video's display size, with rotation and sample aspect ratio applied, and no letterbox or pillarbox bars. They used to be read back from the player view's surface, so they carried mpv's black bars and were only as large as the video's on-screen rectangle. mpv's own screenshot-to-file remains the fallback (#81).
  • Fixed a hang where, with playback paused and two resizes in a row, the render thread spun while holding its lock, so a screenshot or any other frame request blocked forever.
  • The mpv JNI layer is more robust (#79):
    • Kotlin refers to native players by opaque, never-reused ids instead of raw pointers, so a call on a closed player returns its "unavailable" value instead of reading freed memory.
    • Native code no longer calls into Kotlin (logging, listeners) while holding native locks.
    • A C++ exception in a JNI call surfaces as IllegalStateException.
    • Fixed a deadlock at process exit on Windows when a player was still open.

New APIs

  • MPVHandle.getPropertyLongOrNull, getPropertyDoubleOrNull and getPropertyBooleanOrNull return null when mpv cannot provide the property, where the existing getters return 0 or false (#79).
  • MPVFormat.nativeValue: the mpv_format value from mpv/client.h (#79).

Build and packaging

  • compose-ui-test-junit4 is no longer a runtime dependency of the published desktop artifacts.
  • Fixed building the mpv JNI library for Android: desktop GLX code was compiled into it and left libmediampv.so with undefined symbols. The published Android artifacts do not include this library, so this only affects building from source (#79).

Full changelog: v0.5.0...v0.5.1