[vlc-commits] libvlc: fix vbi-page initialization without zvbi plugin

Rémi Denis-Courmont git at videolan.org
Thu Jan 15 20:24:21 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 15 21:21:53 2015 +0200| [950645c06103a61786ba28155523f609b2da5bdb] | committer: Rémi Denis-Courmont

libvlc: fix vbi-page initialization without zvbi plugin

A variable cannot be inherited if it is not a configuration item.
Note this only avoids generating an error; VBI cannot work without the
plugin anyway.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=950645c06103a61786ba28155523f609b2da5bdb
---

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

diff --git a/lib/media_player.c b/lib/media_player.c
index 0f4dda2..cb6b604 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -529,7 +529,8 @@ libvlc_media_player_new( libvlc_instance_t *instance )
     var_Create (mp, "deinterlace", VLC_VAR_INTEGER);
     var_Create (mp, "deinterlace-mode", VLC_VAR_STRING);
 
-    var_Create (mp, "vbi-page", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
+    var_Create (mp, "vbi-page", VLC_VAR_INTEGER);
+    var_SetInteger (mp, "vbi-page", 100);
 
     var_Create (mp, "marq-marquee", VLC_VAR_STRING);
     var_Create (mp, "marq-color", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);



More information about the vlc-commits mailing list