diff options
author | Christopher Steward <cstew764@gmail.com> | 2019-12-11 09:27:07 -0500 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-01-21 20:10:49 +0100 |
commit | dea05089bb72d9ac4d591b38c4ba5554a73a56f7 (patch) | |
tree | 8ff0aa50c3f0dfbf5a59b50b0593450bc52c9d62 /media-video/baka-mplayer/files | |
parent | media-video/baka-mplayer: New live ebuild (diff) | |
download | gentoo-dea05089bb72d9ac4d591b38c4ba5554a73a56f7.tar.gz gentoo-dea05089bb72d9ac4d591b38c4ba5554a73a56f7.tar.bz2 gentoo-dea05089bb72d9ac4d591b38c4ba5554a73a56f7.zip |
media-video/baka-mplayer: fix mpv >=0.23.0 support
Signed-off-by: Christopher Steward <cstew764@gmail.com>
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-video/baka-mplayer/files')
-rw-r--r-- | media-video/baka-mplayer/files/baka-mplayer-2.0.4-mpv23.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/media-video/baka-mplayer/files/baka-mplayer-2.0.4-mpv23.patch b/media-video/baka-mplayer/files/baka-mplayer-2.0.4-mpv23.patch new file mode 100644 index 000000000000..ef5551cef81b --- /dev/null +++ b/media-video/baka-mplayer/files/baka-mplayer-2.0.4-mpv23.patch @@ -0,0 +1,13 @@ +diff --git a/src/mpvhandler.cpp b/src/mpvhandler.cpp +index 7ba06e4..b9ccbeb 100644 +--- a/src/mpvhandler.cpp ++++ b/src/mpvhandler.cpp +@@ -675,7 +675,7 @@ void MpvHandler::LoadFileInfo() + fileInfo.media_title = mpv_get_property_string(mpv, "media-title"); + // get length + double len; +- mpv_get_property(mpv, "length", MPV_FORMAT_DOUBLE, &len); ++ mpv_get_property(mpv, "duration", MPV_FORMAT_DOUBLE, &len); + fileInfo.length = (int)len; + + LoadTracks(); |