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

git version control git at videolan.org
Sun Sep 7 15:03:48 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Sep  6 13:03:19 2008 +0200| [dab658971e6775c2172fd1171f999203a2f0fc78] | committer: Laurent Aimar 

First teletext track is prefered (usually main page).

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

 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 ca6780b..5bd4e68 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -579,7 +579,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