mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +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:
parent
90061e5e3c
commit
44aeed4643
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user