Commit 6857286b authored by Max Kellermann's avatar Max Kellermann

decoder/Thread: don't scan for replay gain tags in PCM streams

This disables a long delay for playing songs from the cdio_paranoia input plugin if ReplayGain is enabled.
parent c0d5bd20
...@@ -4,6 +4,7 @@ ver 0.23.8 (not yet released) ...@@ -4,6 +4,7 @@ ver 0.23.8 (not yet released)
* input * input
- cdio_paranoia: fix crash if no drive was found - cdio_paranoia: fix crash if no drive was found
- cdio_paranoia: faster cancellation - cdio_paranoia: faster cancellation
- cdio_paranoia: don't scan for replay gain tags
* output * output
- pipewire: fix crash with PipeWire 0.3.53 - pipewire: fix crash with PipeWire 0.3.53
* mixer * mixer
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "util/ScopeExit.hxx" #include "util/ScopeExit.hxx"
#include "util/StringCompare.hxx"
#include "thread/Name.hxx" #include "thread/Name.hxx"
#include "tag/ApeReplayGain.hxx" #include "tag/ApeReplayGain.hxx"
#include "Log.hxx" #include "Log.hxx"
...@@ -265,6 +266,13 @@ MaybeLoadReplayGain(DecoderBridge &bridge, InputStream &is) ...@@ -265,6 +266,13 @@ MaybeLoadReplayGain(DecoderBridge &bridge, InputStream &is)
/* ReplayGain is disabled */ /* ReplayGain is disabled */
return; return;
if (is.HasMimeType() &&
StringStartsWith(is.GetMimeType(), "audio/x-mpd-"))
/* skip for (virtual) files (e.g. from the
cdio_paranoia input plugin) which cannot possibly
contain tags */
return;
LoadReplayGain(bridge, is); LoadReplayGain(bridge, is);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment