diff stream/tv.c @ 23900:b5cc28c45d73

Teletext support. Part 2/5: options/slaves/configure/definitions/etc
author voroshil
date Sun, 29 Jul 2007 17:55:28 +0000
parents 0ad7037df91f
children 9e71e0345c35
line wrap: on
line diff
--- a/stream/tv.c	Sun Jul 29 17:52:11 2007 +0000
+++ b/stream/tv.c	Sun Jul 29 17:55:28 2007 +0000
@@ -516,6 +516,9 @@
     demuxer->priv=NULL;
     if(!(tvh=tv_begin(demuxer->stream->priv))) return NULL;
     if (!tvh->functions->init(tvh->priv)) return NULL;
+
+    tvh->functions->control(tvh->priv,TVI_CONTROL_VBI_INIT,&(tvh->tv_param->tdevice));
+
     if (!open_tv(tvh)){
 	tv_uninit(tvh);
 	return NULL;
@@ -731,6 +734,7 @@
 	mp_msg(MSGT_TV, MSGL_V, MSGTR_TV_CurrentFrequency,
 	    freq, (float)freq/16);
     }
+    tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param);
     return(1);
 }
 
@@ -890,6 +894,7 @@
       return 0;
     }
   }
+    tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param);
     return(1);
 }
 
@@ -907,6 +912,7 @@
 	mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_CannotSetNorm);
 	return 0;
     }
+    tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param);
     return(1);
 }