diff --git a/buildscripts/include/download-deps.sh b/buildscripts/include/download-deps.sh index 4b885c8..53a71f3 100755 --- a/buildscripts/include/download-deps.sh +++ b/buildscripts/include/download-deps.sh @@ -92,6 +92,12 @@ if [ ! -d curl ]; then fi # mpv -[ ! -d mpv ] && git clone --depth 1 https://github.com/mpv-player/mpv +if [ ! -d mpv ]; then + git clone --depth 1 https://github.com/mpv-player/mpv + + cd mpv + git apply ../../patches/0001-command-add-estimated-frame-number-to-MPV_EVENT_TICK.patch + cd .. +fi cd .. diff --git a/buildscripts/patches/0001-command-add-estimated-frame-number-to-MPV_EVENT_TICK.patch b/buildscripts/patches/0001-command-add-estimated-frame-number-to-MPV_EVENT_TICK.patch new file mode 100644 index 0000000..a537fa6 --- /dev/null +++ b/buildscripts/patches/0001-command-add-estimated-frame-number-to-MPV_EVENT_TICK.patch @@ -0,0 +1,26 @@ +From 3de0b1b50ecd6cf3646bf80cc3e239fe3c7f8e89 Mon Sep 17 00:00:00 2001 +From: Abdallah Mehiz +Date: Sat, 14 Nov 2026 17:28:27 +0100 +Subject: [PATCH] command: add `estimated-frame-number` to `MPV_EVENT_TICK`'s + observed properties + +--- + player/command.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/player/command.c b/player/command.c +index 516e648142..d97d083a8d 100644 +--- a/player/command.c ++++ b/player/command.c +@@ -4933,7 +4933,7 @@ static const char *const *const mp_event_property_change[] = { + E(MP_EVENT_TRACKS_CHANGED, "track-list", "current-tracks"), + E(MP_EVENT_TRACK_SWITCHED, "track-list", "current-tracks"), + E(MPV_EVENT_IDLE, "*"), +- E(MPV_EVENT_TICK, "time-pos", "audio-pts", "stream-pos", "avsync", ++ E(MPV_EVENT_TICK, "time-pos", "estimated-frame-number", "audio-pts", "stream-pos", "avsync", + "percent-pos", "time-remaining", "playtime-remaining", "playback-time", + "estimated-vf-fps", "total-avsync-change", "audio-speed-correction", + "video-speed-correction", "vo-delayed-frame-count", "mistimed-frame-count", +-- +2.56.0 + diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 9e2189b..0ab163d 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -10,7 +10,7 @@ plugins { val abiCodes = mapOf("armeabi-v7a" to 1, "arm64-v8a" to 2, "x86" to 3, "x86_64" to 4) val universalBase = 8000 -version = "0.1.15" +version = "0.1.16" group = "io.github.animiruorg" android {