[MPlayer-cvslog] r24314 - trunk/stream/tvi_vbi.c
voroshil
subversion at mplayerhq.hu
Sat Sep 1 12:14:43 CEST 2007
Author: voroshil
Date: Sat Sep 1 12:14:42 2007
New Revision: 24314
Log:
Fix missed -1 -> 0x3f7f changes for subpage number.
Patch from Otvos Attila oattila at chello dot hu
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 12:14:42 2007
@@ -590,7 +590,7 @@ static void put_to_cache(priv_vbi_t* pri
*/
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_vb
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);
More information about the MPlayer-cvslog
mailing list