[MPlayer-cvslog] r24316 - trunk/stream/tvi_vbi.c

voroshil subversion at mplayerhq.hu
Sat Sep 1 16:36:49 CEST 2007


Author: voroshil
Date: Sat Sep  1 16:36:49 2007
New Revision: 24316

Log:
Drop out control chars from page header in time position.
Expand time line if necessary.




Modified:
   trunk/stream/tvi_vbi.c

Modified: trunk/stream/tvi_vbi.c
==============================================================================
--- trunk/stream/tvi_vbi.c	(original)
+++ trunk/stream/tvi_vbi.c	Sat Sep  1 16:36:49 2007
@@ -840,9 +840,13 @@ static void prepare_visible_page(priv_vb
         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));
 }
 /*



More information about the MPlayer-cvslog mailing list