From f1fbca4bdd35b7ceb636dac0b979fa1acca9e609 Mon Sep 17 00:00:00 2001 From: voroshil Date: Thu, 23 Aug 2007 16:09:30 +0000 Subject: Automatic TV channels scanning ability for MPlayer. Code is based on patch from Otvos Attila oattila at chello dot hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24125 b3059339-0415-0410-9bf9-f77b7e298cf2 --- command.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'command.c') diff --git a/command.c b/command.c index 49252c6f96..77b81f14e4 100644 --- a/command.c +++ b/command.c @@ -2287,6 +2287,10 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd) #endif #ifdef USE_TV + case MP_CMD_TV_START_SCAN: + if (mpctx->file_format == DEMUXER_TYPE_TV) + tv_start_scan((tvi_handle_t *) (mpctx->demuxer->priv),1); + break; case MP_CMD_TV_SET_FREQ: if (mpctx->file_format == DEMUXER_TYPE_TV) tv_set_freq((tvi_handle_t *) (mpctx->demuxer->priv), -- cgit v1.2.3