# HG changeset patch # User voroshil # Date 1185760952 0 # Node ID dc0fc40bf2657b08dfafb116da62e0c460922165 # Parent 4a50c3a916890679469100361dc36380da1fc724 Drop out overlooked debug line Fix hex to char conversion diff -r 4a50c3a91689 -r dc0fc40bf265 stream/tvi_vbi.c --- 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);