summaryrefslogtreecommitdiffstats
path: root/stream/tvi_vbi.c
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-30 02:02:32 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-30 02:02:32 +0000
commit3a9bed720fcc0a967c04401a13cf2472192895e6 (patch)
tree3503a0a2a5925e9601c00c786fdb9b3a286b0834 /stream/tvi_vbi.c
parent37e8c3daf80b6a0824b1c087be36df9b28f9a028 (diff)
downloadmpv-3a9bed720fcc0a967c04401a13cf2472192895e6.tar.bz2
mpv-3a9bed720fcc0a967c04401a13cf2472192895e6.tar.xz
Drop out overlooked debug line
Fix hex to char conversion git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23927 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tvi_vbi.c')
-rw-r--r--stream/tvi_vbi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c
index 3491426a1f..60330e7fe5 100644
--- a/stream/tvi_vbi.c
+++ b/stream/tvi_vbi.c
@@ -529,7 +529,7 @@ static void decode_page(tt_char* p,int lang,unsigned char* raw)
* 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, void *arg)
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);