summaryrefslogtreecommitdiffstats
path: root/stream/tv.c
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-29 17:55:28 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-29 17:55:28 +0000
commit4f0d56b9ae993ab39db45eeac978a9a5e632add3 (patch)
tree38fd3387cf903eeb37ce33d78e95bac9835a812a /stream/tv.c
parentdd5778726ee97081d6e341cc894a9d459a66ac1e (diff)
downloadmpv-4f0d56b9ae993ab39db45eeac978a9a5e632add3.tar.bz2
mpv-4f0d56b9ae993ab39db45eeac978a9a5e632add3.tar.xz
Teletext support.
Part 2/5: options/slaves/configure/definitions/etc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23920 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tv.c')
-rw-r--r--stream/tv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stream/tv.c b/stream/tv.c
index 884271d53b..12d23895b9 100644
--- a/stream/tv.c
+++ b/stream/tv.c
@@ -516,6 +516,9 @@ static demuxer_t* demux_open_tv(demuxer_t *demuxer)
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 @@ int tv_set_freq(tvi_handle_t *tvh, unsigned long freq)
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 @@ int tv_step_norm(tvi_handle_t *tvh)
return 0;
}
}
+ tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param);
return(1);
}
@@ -907,6 +912,7 @@ int tv_set_norm(tvi_handle_t *tvh, char* norm)
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);
}