Commit d3587067 authored by Felix Paul Kühne's avatar Felix Paul Kühne

patches: add patch fixing variable content initialization for deinterlace and...

patches: add patch fixing variable content initialization for deinterlace and vbi which was refused upstream. This solves teletext subtitles decoding and deinterlacing in general (if requested)
parent f5c108ad
From 9a996dfec6000dce657b582a4d86e99beb5b7aef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Thu, 21 Nov 2013 16:26:40 +0100
Subject: [PATCH] lib/media_player: inherit deinterlace and vbi variables to
fix correct variables values on first use
---
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 01ab243..064691f 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -410,10 +410,10 @@ libvlc_media_player_new( libvlc_instance_t *instance )
var_SetFloat (mp, "scale", 1.);
var_Create (mp, "aspect-ratio", VLC_VAR_STRING);
var_Create (mp, "crop", VLC_VAR_STRING);
- var_Create (mp, "deinterlace", VLC_VAR_INTEGER);
+ var_Create (mp, "deinterlace", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
var_Create (mp, "deinterlace-mode", VLC_VAR_STRING);
- var_Create (mp, "vbi-page", VLC_VAR_INTEGER);
+ var_Create (mp, "vbi-page", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
var_Create (mp, "marq-marquee", VLC_VAR_STRING);
var_Create (mp, "marq-color", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
--
1.8.3.4 (Apple Git-47)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment