[vlc-devel] [PATCH] libvlc: player: inherit VLC variables
Rémi Denis-Courmont
remi at remlab.net
Tue Jun 2 18:47:06 CEST 2020
Le tiistaina 2. kesäkuuta 2020, 19.16.07 EEST Romain Vimont a écrit :
> This allows to correctly handle --sout and --demux-filters parameters
> passed to libvlc.
> ---
> lib/media_player.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/media_player.c b/lib/media_player.c
> index 68e6e62b1a2a..5238b7b1b7fa 100644
> --- a/lib/media_player.c
> +++ b/lib/media_player.c
> @@ -597,8 +597,8 @@ libvlc_media_player_new( libvlc_instance_t *instance )
>
> /* Input */
> var_Create (mp, "rate", VLC_VAR_FLOAT|VLC_VAR_DOINHERIT);
> - var_Create (mp, "sout", VLC_VAR_STRING);
> - var_Create (mp, "demux-filter", VLC_VAR_STRING);
> + var_Create (mp, "sout", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
> + var_Create (mp, "demux-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
-1
These variables are controlled by LibVLC internally. Overriding them in its
back is guaranteed to cause problems eventually.
--
雷米‧德尼-库尔蒙
http://www.remlab.net/
More information about the vlc-devel
mailing list