changeset 23907:dc0fc40bf265

Drop out overlooked debug line Fix hex to char conversion
author voroshil
date Mon, 30 Jul 2007 02:02:32 +0000
parents 4a50c3a91689
children 39b21ffcee44
files stream/tvi_vbi.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_vbi.c	Sun Jul 29 19:25:39 2007 +0000
+++ b/stream/tvi_vbi.c	Mon Jul 30 02:02:32 2007 +0000
@@ -529,7 +529,7 @@
  * background thread to top line of current page). Displays "No teletext"
  * string if no vbi data available.
  */
-#define PRINT_HEX(dp,i,h) dp[i].unicode=((h)&0xf)>9?'A'+((h)&0xf):'0'+((h)&0xf)
+#define PRINT_HEX(dp,i,h) dp[i].unicode=((h)&0xf)>9?'A'+((h-10)&0xf):'0'+((h)&0xf)
 static void prepare_visible_page(priv_vbi_t* priv){
     tt_page *pg,*curr_pg;
     unsigned char *p;
@@ -1234,7 +1234,6 @@
     case TV_VBI_CONTROL_RESET:
     {
         tv_param_t* tv_param=arg;
-fprintf(stderr,"%d\n",tv_param->tpage);
         pthread_mutex_lock(&(priv->buffer_mutex));
         priv->pagenumdec=0;
         clear_cache(priv);