changeset 24294:68b413a3ce51

Fix missed -1 -> 0x3f7f changes for subpage number. Patch from Otvos Attila oattila at chello dot hu
author voroshil
date Sat, 01 Sep 2007 10:14:42 +0000
parents c561d092b642
children de8e36aec5ff
files stream/tvi_vbi.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_vbi.c	Sat Sep 01 01:32:17 2007 +0000
+++ b/stream/tvi_vbi.c	Sat Sep 01 10:14:42 2007 +0000
@@ -590,7 +590,7 @@
  */
 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 @@
         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);