[vlc-commits] [Git][videolan/vlc][master] player: report the volume when it becomes known
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Nov 13 13:10:36 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
d41ee85d by Jonatã Bolzan Loss at 2026-11-13T12:35:46+00:00
player: report the volume when it becomes known
Since 6958b29519, volume changes from an unknown volume were ignored to
avoid showing the volume OSD every time an audio track starts. This
also dropped the volume changed event, so interfaces kept an unknown
volume until it was changed by the user.
Always send the event and only skip the OSD in that case.
- - - - -
1 changed file:
- src/player/aout.c
Changes:
=====================================
src/player/aout.c
=====================================
@@ -87,11 +87,14 @@ vlc_player_AoutCallback(vlc_object_t *this, const char *var,
if (strcmp(var, "volume") == 0)
{
- if (oldval.f_float >= 0.f && oldval.f_float != newval.f_float)
+ if (oldval.f_float != newval.f_float)
{
vlc_player_aout_SendEvent(player, on_volume_changed,
(audio_output_t *)this, newval.f_float);
- vlc_player_osd_Volume(player, false);
+ /* Do not show the OSD when the volume becomes known, e.g. when
+ * an audio track starts */
+ if (oldval.f_float >= 0.f)
+ vlc_player_osd_Volume(player, false);
}
}
else if (strcmp(var, "mute") == 0)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d41ee85d492ba759559a172facc940d097cae558
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d41ee85d492ba759559a172facc940d097cae558
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list