[MPlayer-cvslog] r23927 - trunk/stream/tvi_vbi.c

voroshil subversion at mplayerhq.hu
Mon Jul 30 04:02:32 CEST 2007


Author: voroshil
Date: Mon Jul 30 04:02:32 2007
New Revision: 23927

Log:
Drop out overlooked debug line
Fix hex to char conversion



Modified:
   trunk/stream/tvi_vbi.c

Modified: trunk/stream/tvi_vbi.c
==============================================================================
--- trunk/stream/tvi_vbi.c	(original)
+++ trunk/stream/tvi_vbi.c	Mon Jul 30 04:02:32 2007
@@ -529,7 +529,7 @@ static void decode_page(tt_char* p,int l
  * 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 @@ int teletext_control(void* p, int cmd, v
     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);



More information about the MPlayer-cvslog mailing list