[vlc-commits] [Git][videolan/vlc][master] audio_output: don't inherit equalizer parameters if the equalizer module is not found
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Apr 28 16:31:39 UTC 2024
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
fd149a38 by Steve Lhomme at 2024-04-28T16:11:37+00:00
audio_output: don't inherit equalizer parameters if the equalizer module is not found
- - - - -
1 changed file:
- src/audio_output/output.c
Changes:
=====================================
src/audio_output/output.c
=====================================
@@ -390,9 +390,10 @@ audio_output_t *aout_New (vlc_object_t *parent)
var_Change(aout, "mix-mode", VLC_VAR_SETTEXT, _("Audio mix mode"));
/* Equalizer */
- var_Create (aout, "equalizer-preamp", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT);
- var_Create (aout, "equalizer-bands", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
- var_Create (aout, "equalizer-preset", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
+ int doinherit = module_exists("equalizer") ? VLC_VAR_DOINHERIT : 0;
+ var_Create (aout, "equalizer-preamp", VLC_VAR_FLOAT | doinherit);
+ var_Create (aout, "equalizer-bands", VLC_VAR_STRING | doinherit);
+ var_Create (aout, "equalizer-preset", VLC_VAR_STRING | doinherit);
owner->bitexact = var_InheritBool (aout, "audio-bitexact");
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fd149a38383118d5cb421fc074fded3ad1c6e443
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fd149a38383118d5cb421fc074fded3ad1c6e443
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list