diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-01 10:14:42 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-01 10:14:42 +0000 |
commit | ce81a2156b247d7203f078884043134c93ebe58b (patch) | |
tree | be304f9c6ff82b727c657256e127cc7552e88026 /stream/tvi_vbi.c | |
parent | bbce9daf29916ba976f2d088da2ca2dc6d15cc65 (diff) | |
download | mpv-ce81a2156b247d7203f078884043134c93ebe58b.tar.bz2 mpv-ce81a2156b247d7203f078884043134c93ebe58b.tar.xz |
Fix missed -1 -> 0x3f7f changes for subpage number.
Patch from Otvos Attila oattila at chello dot hu
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24314 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tvi_vbi.c')
-rw-r--r-- | stream/tvi_vbi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c index fdb3bd77a5..b2451ad684 100644 --- a/stream/tvi_vbi.c +++ b/stream/tvi_vbi.c @@ -590,7 +590,7 @@ static void put_to_cache(priv_vbi_t* priv,tt_page* pg,int line){ */ 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 @@ static void prepare_visible_page(priv_vbi_t* priv){ 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); |