Chore: Allow sending extra input args from streamdetails
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 11 Jan 2025 12:08:45 +0000 (13:08 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 11 Jan 2025 12:08:45 +0000 (13:08 +0100)
music_assistant/controllers/streams.py

index 1596ba5f12d73a620862bb7106ec24775bebd206..dd86f2084d1986984cfe6ea6d1b766410d87cf2a 100644 (file)
@@ -912,7 +912,7 @@ class StreamsController(CoreController):
         """Get the audio stream for the given streamdetails as raw pcm chunks."""
         # collect all arguments for ffmpeg
         filter_params = []
-        extra_input_args = []
+        extra_input_args = streamdetails.extra_input_args or []
         # handle volume normalization
         enable_volume_normalization = (
             streamdetails.target_loudness is not None