changeset 24296:1980e76f4482

Drop out control chars from page header in time position. Expand time line if necessary.
author voroshil
date Sat, 01 Sep 2007 14:36:49 +0000
parents de8e36aec5ff
children a5ae2d4973b8
files stream/tvi_vbi.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_vbi.c	Sat Sep 01 10:50:36 2007 +0000
+++ b/stream/tvi_vbi.c	Sat Sep 01 14:36:49 2007 +0000
@@ -840,9 +840,13 @@
         priv->display_page[10].unicode=' ';
     }
     priv->display_page[11].unicode=' ';
-    for(i=VBI_TIME_LINEPOS;i<VBI_COLUMNS;i++){
-        priv->display_page[i].unicode=curr_pg->raw[i];
-    }
+    for(i=VBI_COLUMNS;i>VBI_TIME_LINEPOS || 
+            ((curr_pg->raw[i]&0x60) && curr_pg->raw[i]!=0x20 && i>11);
+            --i)
+        if(curr_pg->raw[i]&0x60)
+            priv->display_page[i].unicode=curr_pg->raw[i];
+        else
+            priv->display_page[i].unicode=' ';
     pthread_mutex_unlock(&(priv->buffer_mutex));
 }
 /*