diff options
author | Mateusz Łukasik <mati75@linuxmint.pl> | 2017-06-16 13:28:11 +0200 |
---|---|---|
committer | Mateusz Łukasik <mati75@linuxmint.pl> | 2017-06-16 13:28:11 +0200 |
commit | 5d41ea1690d2051b893fe507ac284377abb9758a (patch) | |
tree | 803495167cf34a3c1121dad00afb0bd87a5e39fa /src/mpvoptions.cpp | |
parent | 8cd3e30b34e5ff62a993227c386ab77dd01fa1d4 (diff) |
New upstream version 17.6.0~ds0
Diffstat (limited to 'src/mpvoptions.cpp')
-rw-r--r-- | src/mpvoptions.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mpvoptions.cpp b/src/mpvoptions.cpp index e073aeb..f03d575 100644 --- a/src/mpvoptions.cpp +++ b/src/mpvoptions.cpp @@ -64,6 +64,10 @@ void MPVProcess::setMedia(const QString & media, bool is_playlist) { "INFO_MEDIA_TITLE=${=media-title:}\n" "INFO_STREAM_PATH=${stream-path}\n"; +#ifndef Q_OS_WIN + arg << "--audio-client-name=SMPlayer"; +#endif + #ifdef CUSTOM_STATUS arg << "--term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} VB: ${=video-bitrate:0} AB: ${=audio-bitrate:0}"; #endif @@ -628,12 +632,9 @@ void MPVProcess::addAF(const QString & filter_name, const QVariant & value) { QString option = value.toString(); if (filter_name == "volnorm") { - /* - QString s = "drc"; + QString s = "acompressor"; if (!option.isEmpty()) s += "=" + option; - arg << "--af-add=" + s; - */ - arg << "--af-add=lavfi=[acompressor]"; + arg << "--af-add=lavfi=[" + s + "]"; } else if (filter_name == "channels") { @@ -881,9 +882,9 @@ void MPVProcess::enableExtrastereo(bool b) { } void MPVProcess::enableVolnorm(bool b, const QString & option) { - //if (b) writeToStdin("af add drc=" + option); else writeToStdin("af del drc=" + option); - Q_UNUSED(option); - if (b) writeToStdin("af add lavfi=[acompressor]"); else writeToStdin("af del lavfi=[acompressor]"); + QString s = "acompressor"; + if (!option.isEmpty()) s += "=" + option; + if (b) writeToStdin("af add lavfi=[" + s + "]"); else writeToStdin("af del lavfi=[" + s + "]"); } void MPVProcess::setAudioEqualizer(const QString & values) { |