summaryrefslogtreecommitdiffstats
path: root/stream/tvi_dshow.c
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-07 12:31:05 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-07 12:31:05 +0000
commit423c415534f7393c07247b87ab4d95f6d0635474 (patch)
treedd986257786302c543d7a1807b4c310d15883276 /stream/tvi_dshow.c
parent1698db0726e4b7c11f4dc47dfc823df5ab1cd80d (diff)
downloadmpv-423c415534f7393c07247b87ab4d95f6d0635474.tar.bz2
mpv-423c415534f7393c07247b87ab4d95f6d0635474.tar.xz
Separate teletext from tv support.
Path by Francesco Lavra, francescolavra interfree it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29848 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tvi_dshow.c')
-rw-r--r--stream/tvi_dshow.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c
index 28bf0a141f..40951a698e 100644
--- a/stream/tvi_dshow.c
+++ b/stream/tvi_dshow.c
@@ -2552,7 +2552,7 @@ static HRESULT build_vbi_chain(priv_t *priv)
if(priv->chains[2]->rbuf)
return S_OK;
- if(priv->tv_param->tdevice)
+ if(priv->tv_param->teletext.device)
{
priv->chains[2]->rbuf=calloc(1,sizeof(grabber_ringbuffer_t));
if(!priv->chains[2]->rbuf)
@@ -3493,8 +3493,9 @@ static int control(priv_t * priv, int cmd, void *arg)
priv->priv_vbi=NULL;
return TVI_CONTROL_TRUE;
}
- default:
- return teletext_control(priv->priv_vbi,cmd,arg);
+ case TVI_CONTROL_GET_VBI_PTR:
+ *(void **)arg=priv->priv_vbi;
+ return TVI_CONTROL_TRUE;
#endif
}
return TVI_CONTROL_UNKNOWN;