Ticket #1485: use-correct-frequency.diff
File use-correct-frequency.diff, 1.4 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/channelutil.cpp
old new 74 74 .arg(frequency).arg(modulation)); 75 75 76 76 // If transport is already present, skip insert 77 uint mplex = get_dtv_multiplex(77 int mplex = get_dtv_multiplex( 78 78 db_source_id, sistandard, frequency, 79 79 // DVB specific 80 80 transport_id, network_id); … … 186 186 187 187 // Use the frequency we already have for this mplex 188 188 // as it may be one of the other_frequencies for this mplex 189 if (cd.OtherFrequencyInUse()) 190 { 191 QString modulation; 192 uint mux = ChannelUtil::GetMplexID(sourceid, tsid, netid); 193 freq = ChannelUtil::GetTuningParams(mux, modulation); 194 } 189 QString modulation; 190 int mux = ChannelUtil::GetMplexID(sourceid, tsid, netid); 191 if (mux != -1) 192 freq = ChannelUtil::GetTuningParams(mux, modulation); 195 193 196 uint mux = ChannelUtil::CreateMultiplex(194 int mux = ChannelUtil::CreateMultiplex( 197 195 sourceid, "dvb", 198 196 freq, QString::null, 199 197 // DVB specific