mpv: apply patch to fix youtube DASH streams
Co-authored-by: Sandro <sandro.jaeckel@gmail.com> The ytdl_hook.lua supplied with the latest mpv release is incompatible with the latest yt-dlp release, causing streaming some youtube formats to fail. This applies an already-upstreamed fix. Upstream issue: mpv-player/mpv#11392 Upstream patch: mpv-player/mpv#11398
This commit is contained in:
parent
39d3f1d90a
commit
e36ea6fb75
|
@ -2,6 +2,7 @@
|
|||
, lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, addOpenGLRunpath
|
||||
, docutils
|
||||
, meson
|
||||
|
@ -93,6 +94,15 @@ in stdenv.mkDerivation (self: {
|
|||
sha256 = "sha256-CoYTX9hgxLo72YdMoa0sEywg4kybHbFsypHk1rCM6tM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# fixes EDL error on youtube DASH streams https://github.com/mpv-player/mpv/issues/11392
|
||||
# to be removed on next release
|
||||
url = "https://github.com/mpv-player/mpv/commit/94c189dae76ba280d9883b16346c3dfb9720687e.patch";
|
||||
sha256 = "sha256-MGXU1L5OSxY5bdEpu9vHngnRXMr7WHeHWuamhjcUD4A=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs version.* ./TOOLS/
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue