[vlc-devel] commit: First teletext track is prefered (usually main page). ( Laurent Aimar )

git version control git at videolan.org
Sun Sep 7 23:23:10 CEST 2008


vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Sat Sep  6 13:03:19 2008 +0200| [48278e0c6a65ab4a957e7c933fb1546bce026a76] | committer: Derk-Jan Hartman 

First teletext track is prefered (usually main page).
(cherry picked from commit dab658971e6775c2172fd1171f999203a2f0fc78)

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

 src/input/es_out.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 547f993..f1b4f38 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -493,7 +493,10 @@ static void EsOutESVarUpdateGeneric( es_out_t *out, int i_id, es_format_t *fmt,
     free( text.psz_string );
 
     if( b_teletext )
-        var_SetInteger( p_sys->p_input, "teletext-es", i_id );
+    {
+        if( var_GetInteger( p_sys->p_input, "teletext-es" ) < 0 )
+            var_SetInteger( p_sys->p_input, "teletext-es", i_id );
+    }
 
     var_SetBool( p_sys->p_input, "intf-change", true );
 }




More information about the vlc-devel mailing list