1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

channel finetuning cmdline support, patch by Ivan Szanto <szivan@duticai.TWI.TUDelft.NL>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9890 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-04-09 16:07:45 +00:00
parent 90061e5e3c
commit 44aeed4643

View File

@ -298,6 +298,17 @@ static int open_tv(tvi_handle_t *tvh)
if (tv_channel_current->freq == 0)
mp_msg(MSGT_TV, MSGL_ERR, "Couldn't find frequency for channel %s (%s)\n",
tv_channel_current->number, tv_channel_current->name);
else {
sep = strchr(tv_channel_current->name, '-');
if ( !sep ) sep = strchr(tv_channel_current->name, '+');
if ( sep ) {
i = atoi (sep+1);
if ( sep[0] == '+' ) tv_channel_current->freq += i * 100;
if ( sep[0] == '-' ) tv_channel_current->freq -= i * 100;
sep[0] = '\0';
}
}
/*mp_msg(MSGT_TV, MSGL_INFO, "-- Detected channel %s - %s (%5.3f)\n",
tv_channel_current->number, tv_channel_current->name,