[vlc-devel] [PATCH] libvlc: inherit defaults when setting video title display

Mark Lee mark.lee at capricasoftware.co.uk
Sun Jul 7 16:36:52 CEST 2013


---
 lib/media_player.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/media_player.c b/lib/media_player.c
index 376159f..2dfb53a 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -458,9 +458,9 @@ libvlc_media_player_new( libvlc_instance_t *instance )
     var_Create (mp, "amem-channels", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
 
     /* Video Title */
-    var_Create (mp, "video-title-show", VLC_VAR_BOOL);
-    var_Create (mp, "video-title-position", VLC_VAR_INTEGER);
-    var_Create (mp, "video-title-timeout", VLC_VAR_INTEGER);
+    var_Create (mp, "video-title-show", VLC_VAR_BOOL | VLC_VAR_DOINHERIT);
+    var_Create (mp, "video-title-position", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
+    var_Create (mp, "video-title-timeout", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
 
     mp->p_md = NULL;
     mp->state = libvlc_NothingSpecial;
-- 
1.8.1.2




More information about the vlc-devel mailing list