From ce81a2156b247d7203f078884043134c93ebe58b Mon Sep 17 00:00:00 2001 From: voroshil Date: Sat, 1 Sep 2007 10:14:42 +0000 Subject: Fix missed -1 -> 0x3f7f changes for subpage number. Patch from Otvos Attila oattila at chello dot hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24314 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_vbi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stream') diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c index fdb3bd77a5..b2451ad684 100644 --- a/stream/tvi_vbi.c +++ b/stream/tvi_vbi.c @@ -590,7 +590,7 @@ static void put_to_cache(priv_vbi_t* priv,tt_page* pg,int line){ */ static inline int get_subpagenum_from_cache(priv_vbi_t* priv, int pagenum){ if (!priv->ptt_cache[pagenum]) - return -1; + return 0x3f7f; else return priv->ptt_cache[pagenum]->subpagenum; } @@ -830,7 +830,7 @@ static void prepare_visible_page(priv_vbi_t* priv){ PRINT_HEX(priv->display_page,6,priv->pagenum>>4); PRINT_HEX(priv->display_page,7,priv->pagenum); } - if(priv->subpagenum!=-1){ + if(priv->subpagenum!=0x3f7f){ priv->display_page[8].unicode='.'; PRINT_HEX(priv->display_page,9,priv->subpagenum>>4); PRINT_HEX(priv->display_page,10,priv->subpagenum); -- cgit v1.2.3