[vlc-commits] [Git][videolan/vlc][master] 2 commits: lib: set HSV and gamma default explicitly
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Fri May 27 12:05:37 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
1853c02d by Rémi Denis-Courmont at 2022-05-27T11:53:40+00:00
lib: set HSV and gamma default explicitly
- - - - -
a20eb577 by Rémi Denis-Courmont at 2022-05-27T11:53:40+00:00
lib: do not crash if adjust filter is missing
Core/LibVLC code should only inherit values from core variables.
Defaults cannot be inherited from variables that may not exist as
configuration items.
Fixes #26881.
- - - - -
1 changed file:
- lib/media_player.c
Changes:
=====================================
lib/media_player.c
=====================================
@@ -676,11 +676,15 @@ libvlc_media_player_new( libvlc_instance_t *instance )
var_Create(mp, "logo-opacity", VLC_VAR_INTEGER | doinherit);
var_Create(mp, "logo-position", VLC_VAR_INTEGER | doinherit);
- var_Create (mp, "contrast", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT);
- var_Create (mp, "brightness", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT);
- var_Create (mp, "hue", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT);
- var_Create (mp, "saturation", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT);
- var_Create (mp, "gamma", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT);
+ var_Create(mp, "contrast", VLC_VAR_FLOAT);
+ var_SetFloat(mp, "contrast", 1.f);
+ var_Create(mp, "brightness", VLC_VAR_FLOAT);
+ var_SetFloat(mp, "brightness", 1.f);
+ var_Create(mp, "hue", VLC_VAR_FLOAT);
+ var_Create(mp, "saturation", VLC_VAR_FLOAT);
+ var_SetFloat(mp, "saturation", 1.f);
+ var_Create(mp, "gamma", VLC_VAR_FLOAT);
+ var_SetFloat(mp, "gamma", 1.f);
/* Audio */
var_Create (mp, "aout", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ff7ab55ff1688c018077f230a471d9332514d523...a20eb577e04abc4bf0bb91309d0f61e9bbc17918
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ff7ab55ff1688c018077f230a471d9332514d523...a20eb577e04abc4bf0bb91309d0f61e9bbc17918
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