libvlc: disable OSD by default

Most libvlc usage means displaying the video in their own UI with their own
style. We should not push our OSD style by default. It can still be added
back with an "osd" parameter when calling libvlc_new().

Keep the OSD on Desktop builds, although with the Qt integration it may be
better to do it in the UI layer as well.
This commit is contained in:
Steve Lhomme 2022-03-04 11:31:42 +01:00 committed by Jean-Baptiste Kempf
parent 6fa58261ff
commit 4efd909663
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@ -80,6 +80,7 @@ Video output:
* Remove RealRTSP plugin
* Remove Real demuxer plugin
* Fix washed out black on NVIDIA cards with Direct3D9
* On-Screen-Display is off by default in libvlc
Audio filter:
* Add RNNoise recurrent neural network denoiser

View File

@ -653,6 +653,8 @@ libvlc_media_player_new( libvlc_instance_t *instance )
var_Create (mp, "sub-source", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
var_Create (mp, "sub-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
var_Create (mp, "osd", VLC_VAR_BOOL); // off
var_Create (mp, "marq-marquee", VLC_VAR_STRING);
var_Create (mp, "marq-color", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
var_Create (mp, "marq-opacity", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);