diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-01 14:36:49 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-01 14:36:49 +0000 |
commit | efd9aba8678af55c1b6f15684c96dc3ed328c86a (patch) | |
tree | db2e06334d1d534b72330f13c776145775280dbc | |
parent | e371194632d839fbafd5941941f5444584f227c0 (diff) |
Drop out control chars from page header in time position.
Expand time line if necessary.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24316 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | stream/tvi_vbi.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c index b2451ad684..77d77de994 100644 --- a/stream/tvi_vbi.c +++ b/stream/tvi_vbi.c @@ -840,9 +840,13 @@ static void prepare_visible_page(priv_vbi_t* priv){ 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)); } /* |