[vlc-devel] [PATCH] libvlc: player: inherit VLC variables

Romain Vimont rom1v at videolabs.io
Tue Jun 2 18:16:07 CEST 2020


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);
 
     /* Video */
     var_Create (mp, "vout", VLC_VAR_STRING|VLC_VAR_DOINHERIT);
-- 
2.27.0



More information about the vlc-devel mailing list