[vlc-devel] commit: Added teletext-es description as page number to help interfaces. ( Laurent Aimar )

git version control git at videolan.org
Sat Feb 14 00:46:33 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 14 00:27:03 2009 +0100| [4c8f79f7bed40cf05497d44fc05563d76e67438b] | committer: Laurent Aimar 

Added teletext-es description as page number to help interfaces.

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

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

diff --git a/src/input/es_out.c b/src/input/es_out.c
index d33b5e8..5276412 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -921,7 +921,14 @@ static void EsOutESVarUpdateGeneric( es_out_t *out, int i_id,
 
     input_SendEventEsAdd( p_input, fmt->i_cat, i_id, text.psz_string );
     if( EsFmtIsTeletext( fmt ) )
-        input_SendEventTeletextAdd( p_sys->p_input, i_id, NULL );
+    {
+        char psz_page[3+1];
+        snprintf( psz_page, sizeof(psz_page), "%d%2.2x",
+                  fmt->subs.teletext.i_magazine,
+                  fmt->subs.teletext.i_page );
+        input_SendEventTeletextAdd( p_sys->p_input,
+                                    i_id, fmt->subs.teletext.i_magazine >= 0 ? psz_page : NULL );
+    }
 
     free( text.psz_string );
 }




More information about the vlc-devel mailing list