Mercurial > mplayer.hg
changeset 9889:9dc39697e3b3
channel finetuning cmdline support, patch by Ivan Szanto <szivan@duticai.TWI.TUDelft.NL>
author | alex |
---|---|
date | Wed, 09 Apr 2003 16:07:45 +0000 |
parents | 9f3e8c42a7cb |
children | 237fcb766110 |
files | libmpdemux/tv.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/tv.c Wed Apr 09 15:51:37 2003 +0000 +++ b/libmpdemux/tv.c Wed Apr 09 16:07:45 2003 +0000 @@ -298,6 +298,17 @@ 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,