[vlc-commits] libvlc: fix vbi-page initialization without zvbi plugin
Rémi Denis-Courmont
git at videolan.org
Thu Jan 15 20:34:22 CET 2015
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 15 21:21:53 2015 +0200| [42903febc606e4f447bda7718a0d8632a91b84e2] | 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.
(cherry picked from commit 950645c06103a61786ba28155523f609b2da5bdb)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=42903febc606e4f447bda7718a0d8632a91b84e2
---
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 0ff0a4c..b4a5f10 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -439,7 +439,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