[Kwintv] kdenonbeta/kwintv3/qtvision/plugins/channel/xawtv
Dirk Ziegelmeier
dirk at ziegelmeier.net
Sun Dec 14 09:50:21 CET 2003
CVS commit by dziegel:
CCMAIL: kwintv at mail.kde.org
Patch from Koos Vriezen: Fix finetuning in xawtv channel import
M +7 -4 channelioxawtv.cpp 1.11
--- kdenonbeta/kwintv3/qtvision/plugins/channel/xawtv/channelioxawtv.cpp #1.10:1.11
@@ -105,9 +105,12 @@ bool ChannelIOFormatXawtv::load(ChannelS
Channel *channel = new Channel( store );
channel->setName( (*it).name );
+ unsigned long freq;
if ( !( *it ).params[ "freq" ].isEmpty() )
- channel->setFreq( ( *it ).params[ "freq" ].toULong() );
- else channel->setFreq( channelToFrequency( ( *it ).params[ "channel" ] ) );
+ freq = ( *it ).params[ "freq" ].toULong();
+ else
+ freq = channelToFrequency( ( *it ).params[ "channel" ] );
if ( !( *it ).params[ "fine" ].isEmpty() )
- channel->setFreq( channel->freq() + ( *it ).params[ "fine" ].toLong() );
+ freq += (unsigned long) 62.5 * ( *it ).params[ "fine" ].toLong();
+ channel->setFreq( freq );
if ( !( *it ).params[ "norm" ].isEmpty() )
channel->setEncoding( ( *it ).params[ "norm" ].lower() );
More information about the kwintv
mailing list