[vlc-commits] [Git][videolan/vlc][master] 3 commits: vout_intf: don't display projection if unchanged

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Sun Oct 5 13:23:23 UTC 2025



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
dcc6383a by Rémi Denis-Courmont at 2025-10-05T13:07:35+00:00
vout_intf: don't display projection if unchanged

Otherwise it gets printed everytime a video track starts.

Fixes #29385.

- - - - -
99b1759d by Rémi Denis-Courmont at 2025-10-05T13:07:35+00:00
aout: set volume to -1 if unknown

This is consistent with the aout destruction path.

- - - - -
6958b295 by Rémi Denis-Courmont at 2025-10-05T13:07:35+00:00
aout: do not print volume if not previously known

Otherwise we get a Volume OSD message everytime an audio track start
(if there already happens to be a video track).

- - - - -


3 changed files:

- src/audio_output/output.c
- src/player/aout.c
- src/video_output/vout_intf.c


Changes:

=====================================
src/audio_output/output.c
=====================================
@@ -285,6 +285,7 @@ audio_output_t *aout_New (vlc_object_t *parent)
 
     /* Audio output module callbacks */
     var_Create (aout, "volume", VLC_VAR_FLOAT);
+    var_SetFloat(aout, "volume", -1.f);
     var_AddCallback (aout, "volume", var_Copy, parent);
     var_Create (aout, "mute", VLC_VAR_BOOL);
     var_AddCallback (aout, "mute", var_Copy, parent);


=====================================
src/player/aout.c
=====================================
@@ -87,7 +87,7 @@ vlc_player_AoutCallback(vlc_object_t *this, const char *var,
 
     if (strcmp(var, "volume") == 0)
     {
-        if (oldval.f_float != newval.f_float)
+        if (oldval.f_float >= 0.f && oldval.f_float != newval.f_float)
         {
             vlc_player_aout_SendEvent(player, on_volume_changed,
                                       (audio_output_t *)this, newval.f_float);


=====================================
src/video_output/vout_intf.c
=====================================
@@ -689,7 +689,9 @@ static int ChangeProjectionCallback( vlc_object_t *obj, char const *name,
         default: projection = "unknown"; break;
     }
 
-    vout_OSDMessage(vout, VOUT_SPU_CHANNEL_OSD, "Projection: %s", projection);
+    if (cur.i_int != prev.i_int)
+        vout_OSDMessage(vout, VOUT_SPU_CHANNEL_OSD,
+                        "Projection: %s", projection);
     if (cur.i_int == -1)
     {
         vout_ResetProjection(vout);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/33a268bd6590a71206311ed0325cc8f5dbe4ed34...6958b2951940c387795b07028ad890d05e1f59d5

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/33a268bd6590a71206311ed0325cc8f5dbe4ed34...6958b2951940c387795b07028ad890d05e1f59d5
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