diff --git a/0013-set-mpv-option-demuxer-max-bytes-value.patch b/0013-set-mpv-option-demuxer-max-bytes-value.patch new file mode 100644 index 0000000000000000000000000000000000000000..de803e57f881098977b405424790504fde143d89 --- /dev/null +++ b/0013-set-mpv-option-demuxer-max-bytes-value.patch @@ -0,0 +1,13 @@ +diff --git a/src/mpvoptions.cpp b/src/mpvoptions.cpp +index 677543b..6206201 100755 +--- a/src/mpvoptions.cpp ++++ b/src/mpvoptions.cpp +@@ -172,7 +172,7 @@ void MPVProcess::setOption(const QString & option_name, const QVariant & value) + if (cache > 31) { + if (isOptionAvailable("--demuxer-max-bytes")) { + int bytes = value.toString().toInt() * 1024; +- arg << "--demuxer-max-bytes=" << QString::number(bytes); ++ arg << "--demuxer-max-bytes=" + QString::number(bytes); + }else { + arg << "--cache=" + value.toString(); + } diff --git a/nfs-mplayer.spec b/nfs-mplayer.spec index c4058d0dd22b057ea7334d90ebafb0a297566547..f20f2dc8314cd29d1e1480424ac42e1b4b0ffba6 100644 --- a/nfs-mplayer.spec +++ b/nfs-mplayer.spec @@ -1,6 +1,6 @@ Name: nfs-mplayer Version: 1.0.0 -Release: 14%{?dist} +Release: 15%{?dist} Summary: A great media player Group: Applications/Multimedia License: GPLv2+ @@ -17,6 +17,7 @@ Patch8: 0009-fix-window-resizing-error-cannot-capture-mouse-release.patch Patch9: 0010-adjust-mpv-options-compatible-with-high-and-low-mpv-version.patch Patch10: 0011-update-README.patch Patch11: 0012-set-dialog-font-display-error.patch +Patch12: 0013-set-mpv-option-demuxer-max-bytes-value.patch %if 0%{?suse_version} BuildRequires: hicolor-icon-theme @@ -117,6 +118,9 @@ update-desktop-database &> /dev/null || : %changelog +* Fri Oct 20 2023 ruizhe - 1.0.0-15 +- Fix: set mpv option "--demuxer-max-bytes" value error + * Thu Oct 19 2023 ruizhe - 1.0.0-14 - fix variable name error