pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/multimedia/mpv



Module Name:    pkgsrc
Committed By:   snj
Date:           Wed Mar  8 17:39:19 UTC 2023

Modified Files:
        pkgsrc/multimedia/mpv: Makefile distinfo
Added Files:
        pkgsrc/multimedia/mpv/patches: patch-player-lua-ytdl__hook.lua

Log Message:
mpv: fix playback of certain videos via ytdl hook.

upstream commit: https://github.com/mpv-player/mpv/commit/94c189dae76ba280d9883b16346c3dfb9720687e

bump PKGREVISION to 1


To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 pkgsrc/multimedia/mpv/Makefile
cvs rdiff -u -r1.77 -r1.78 pkgsrc/multimedia/mpv/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/multimedia/mpv/patches/patch-player-lua-ytdl__hook.lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/multimedia/mpv/Makefile
diff -u pkgsrc/multimedia/mpv/Makefile:1.147 pkgsrc/multimedia/mpv/Makefile:1.148
--- pkgsrc/multimedia/mpv/Makefile:1.147        Tue Jan 31 14:29:20 2023
+++ pkgsrc/multimedia/mpv/Makefile      Wed Mar  8 17:39:19 2023
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.147 2023/01/31 14:29:20 wiz Exp $
+# $NetBSD: Makefile,v 1.148 2023/03/08 17:39:19 snj Exp $
 
 DISTNAME=      mpv-0.35.1
+PKGREVISION=   1
 CATEGORIES=    multimedia
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mpv-player/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}

Index: pkgsrc/multimedia/mpv/distinfo
diff -u pkgsrc/multimedia/mpv/distinfo:1.77 pkgsrc/multimedia/mpv/distinfo:1.78
--- pkgsrc/multimedia/mpv/distinfo:1.77 Tue Jan 31 14:29:20 2023
+++ pkgsrc/multimedia/mpv/distinfo      Wed Mar  8 17:39:19 2023
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.77 2023/01/31 14:29:20 wiz Exp $
+$NetBSD: distinfo,v 1.78 2023/03/08 17:39:19 snj Exp $
 
 BLAKE2s (mpv-0.35.1.tar.gz) = 9b4b4d1688fa472980417077495470b1d72f135504e341190d847252de87468e
 SHA512 (mpv-0.35.1.tar.gz) = 42f3564a9ed4d972d14b2c697b0163f06a8bb68a0606a86c34935181247c783e3cb62286b445799998def0919fb13fce8b8f6453f82652d5bfaea5929119127a
 Size (mpv-0.35.1.tar.gz) = 3367913 bytes
 SHA1 (patch-audio_out_ao__alsa.c) = c4661d0d22550d6e4eb2b7a42dd04dbcc58123b0
 SHA1 (patch-etc_mpv.conf) = 9e41b2f4bf59c3bfc5ad84af05538661981ed111
+SHA1 (patch-player-lua-ytdl__hook.lua) = ea5ad528f7d779c7e5fc7c672c74cc2a3e39f221
 SHA1 (patch-stream_stream__libarchive.c) = 2025f994b7f82cc868608ab7e8df0ae89b549922
 SHA1 (patch-video_out_drm__common.c) = 70eb8884f63e9456c0ffe592289cfd81e208955b
 SHA1 (patch-video_out_wayland__common.c) = abed416d258ebf0b595ea897daf3013dd81189e8

Added files:

Index: pkgsrc/multimedia/mpv/patches/patch-player-lua-ytdl__hook.lua
diff -u /dev/null pkgsrc/multimedia/mpv/patches/patch-player-lua-ytdl__hook.lua:1.1
--- /dev/null   Wed Mar  8 17:39:19 2023
+++ pkgsrc/multimedia/mpv/patches/patch-player-lua-ytdl__hook.lua       Wed Mar  8 17:39:19 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-player-lua-ytdl__hook.lua,v 1.1 2023/03/08 17:39:19 snj Exp $
+
+https://github.com/mpv-player/mpv/commit/94c189dae76ba280d9883b16346c3dfb9720687e
+
+--- player/lua/ytdl_hook.lua.orig      2023-03-08 09:25:20.398346894 -0800
++++ player/lua/ytdl_hook.lua   2023-03-08 09:25:29.108234437 -0800
+@@ -295,7 +295,7 @@ local function edl_track_joined(fragment
+         local args = ""
+ 
+         -- assume MP4 DASH initialization segment
+-        if not fragments[1].duration then
++        if not fragments[1].duration and #fragments > 1 then
+             msg.debug("Using init segment")
+             args = args .. ",init=" .. edl_escape(join_url(base, fragments[1]))
+             offset = 2



Home | Main Index | Thread Index | Old Index