# HG changeset patch # User voroshil # Date 1188610337 0 # Node ID c561d092b642ab4ab8cb7c2b28bf610d6ba102c9 # Parent ca146808e92620d9c60be3f5b4ea1a4bed1615df Fix displaying start page when it has subpages. diff -r ca146808e926 -r c561d092b642 stream/tvi_vbi.c --- a/stream/tvi_vbi.c Sat Sep 01 01:22:30 2007 +0000 +++ b/stream/tvi_vbi.c Sat Sep 01 01:32:17 2007 +0000 @@ -780,7 +780,7 @@ pthread_mutex_lock(&(priv->buffer_mutex)); mp_msg(MSGT_TV,MSGL_DBG3,"tvi_vbi: prepare_visible_page pg:0x%x, sub:0x%x\n", priv->pagenum,priv->subpagenum); - if(priv->subpagenum==-1) //no page yet + if(priv->subpagenum==0x3f7f) //no page yet priv->subpagenum=get_subpagenum_from_cache(priv,priv->pagenum); pg=get_from_cache(priv,priv->pagenum,priv->subpagenum); @@ -1628,7 +1628,7 @@ clear_cache(priv); priv->pagenum=steppage(0,tv_param->tpage&0x7ff,1); priv->tformat=tv_param->tformat; - priv->subpagenum=0; + priv->subpagenum=0x3f7f; pll_reset(priv,fine_tune); if(tv_param->tlang==-1){ mp_msg(MSGT_TV,MSGL_INFO,MSGTR_TV_TTSupportedLanguages); @@ -1666,7 +1666,7 @@ memcpy(priv->ptsp,ptsp,sizeof(tt_stream_props)); *(priv_vbi_t**)arg=priv; - priv->subpagenum=0; + priv->subpagenum=0x3f7f; pthread_mutex_init(&priv->buffer_mutex, NULL); priv->pagenumdec=0; for(i=0;ipagenumdec=0; priv->subpagenum=*(int*)arg; if(priv->subpagenum<0) - priv->subpagenum=0; + priv->subpagenum=0x3f7f; if(priv->subpagenum>=VBI_MAX_SUBPAGES) priv->subpagenum=VBI_MAX_SUBPAGES-1; pthread_mutex_unlock(&(priv->buffer_mutex));