Ticket #2741: disable_active_eitscan.diff
File disable_active_eitscan.diff, 5.7 KB (added by , 16 years ago) |
---|
-
libs/libmythtv/dbcheck.cpp
old new using namespace std; 13 13 #define MINIMUM_DBMS_VERSION 5 14 14 15 15 /// This is the DB schema version expected by the running MythTV instance. 16 const QString currentDatabaseVersion = "120 8";16 const QString currentDatabaseVersion = "1209"; 17 17 18 18 static bool UpdateDBVersionNumber(const QString &newnumber); 19 19 static bool performActualUpdate(const QString updates[], QString version, … … thequery, 3407 3407 return false; 3408 3408 } 3409 3409 3410 if (dbver == "1208") 3411 { 3412 const QString updates[] = { 3413 "ALTER TABLE capturecard ADD dvb_eitscan tinyint(1) NOT NULL default '1'; ", 3414 "" 3415 }; 3416 if (!performActualUpdate(updates, "1209", dbver)) 3417 return false; 3418 } 3419 3410 3420 //"ALTER TABLE cardinput DROP COLUMN preference;" in 0.22 3411 3421 //"ALTER TABLE channel DROP COLUMN atscsrcid;" in 0.22 3412 3422 //"ALTER TABLE recordedmarkup DROP COLUMN offset;" in 0.22 -
libs/libmythtv/tv_rec.cpp
old new void TVRec::RunTV(void) 1447 1447 if (channel && scanner && 1448 1448 QDateTime::currentDateTime() > eitScanStartTime) 1449 1449 { 1450 if (!get_use_eit(GetCaptureCardNum())) 1450 if (!dvbOpt.dvb_eitscan) 1451 { 1452 VERBOSE(VB_EIT, LOC + "EIT scanning disabled for this card."); 1453 eitScanStartTime = eitScanStartTime.addYears(1); 1454 } 1455 else if (!get_use_eit(GetCaptureCardNum())) 1451 1456 { 1452 1457 VERBOSE(VB_EIT, LOC + "EIT scanning disabled " 1453 1458 "for all sources on this card."); … … bool TVRec::GetDevices(int cardid, 1590 1595 " skipbtaudio, signal_timeout, channel_timeout, " 1591 1596 " dvb_wait_for_seqstart, " 1592 1597 "" 1593 " dvb_on_demand, dvb_tuning_delay, "1598 " dvb_on_demand, dvb_tuning_delay, dvb_eitscan" 1594 1599 "" 1595 1600 " firewire_speed, firewire_model, firewire_connection, " 1596 1601 "" … … bool TVRec::GetDevices(int cardid, 1649 1654 uint dvboff = 10; 1650 1655 dvb_opts.dvb_on_demand = query.value(dvboff + 0).toUInt(); 1651 1656 dvb_opts.dvb_tuning_delay = query.value(dvboff + 1).toUInt(); 1657 dvb_opts.dvb_eitscan = query.value(dvboff + 2).toUInt(); 1652 1658 1653 1659 // Firewire options 1654 uint fireoff = dvboff + 2;1660 uint fireoff = dvboff + 3; 1655 1661 firewire_opts.speed = query.value(fireoff + 0).toUInt(); 1656 1662 1657 1663 test = query.value(fireoff + 1).toString(); -
libs/libmythtv/tv_rec.h
old new class GeneralDBOptions 79 79 class DVBDBOptions 80 80 { 81 81 public: 82 DVBDBOptions() : dvb_on_demand(false), dvb_tuning_delay(0) {;}82 DVBDBOptions() : dvb_on_demand(false), dvb_tuning_delay(0), dvb_eitscan(true) {;} 83 83 bool dvb_on_demand; 84 84 uint dvb_tuning_delay; 85 bool dvb_eitscan; 85 86 }; 86 87 87 88 class FireWireDBOptions -
libs/libmythtv/videosource.cpp
old new class DVBOnDemand : public CheckBoxSetti 1052 1052 }; 1053 1053 }; 1054 1054 1055 class DVBEITScan : public CheckBoxSetting, public CaptureCardDBStorage 1056 { 1057 public: 1058 DVBEITScan(const CaptureCard &parent) : 1059 CheckBoxSetting(this), 1060 CaptureCardDBStorage(this, parent, "dvb_eitscan") 1061 { 1062 setLabel(QObject::tr("Use DVB Card for active EIT scan")); 1063 setValue(true); 1064 setHelpText( 1065 QObject::tr("This option activates the active scan for " 1066 "program data (EIT). With this option enabled " 1067 "the DVB card is constantly in-use.")); 1068 }; 1069 }; 1070 1055 1071 class DVBTuningDelay : public SpinBoxSetting, public CaptureCardDBStorage 1056 1072 { 1057 1073 public: … … RecorderOptions::RecorderOptions(Capture 2952 2968 rec->addChild(count); 2953 2969 rec->addChild(new DVBNoSeqStart(parent)); 2954 2970 rec->addChild(new DVBOnDemand(parent)); 2971 rec->addChild(new DVBEITScan(parent)); 2955 2972 rec->addChild(new DVBTuningDelay(parent)); 2956 2973 2957 2974 addChild(rec); -
libs/libmythtv/cardutil.cpp
old new static uint clone_capturecard(uint src_c 468 468 "SELECT videodevice, cardtype, defaultinput, " 469 469 " hostname, signal_timeout, channel_timeout, " 470 470 " dvb_wait_for_seqstart, dvb_on_demand, dvb_tuning_delay, " 471 " dvb_diseqc_type, diseqcid "471 " dvb_diseqc_type, diseqcid, dvb_eitscan " 472 472 "FROM capturecard " 473 473 "WHERE cardid = :CARDID"); 474 474 query.bindValue(":CARDID", src_cardid); … … static uint clone_capturecard(uint src_c 497 497 " dvb_on_demand = :V7, " 498 498 " dvb_tuning_delay = :V8, " 499 499 " dvb_diseqc_type = :V9, " 500 " diseqcid = :V10 " 500 " diseqcid = :V10," 501 " dvb_eitscan = :V11 " 501 502 "WHERE cardid = :CARDID"); 502 for (uint i = 0; i < 1 1; i++)503 for (uint i = 0; i < 12; i++) 503 504 query2.bindValue(QString(":V%1").arg(i), query.value(i).toString()); 504 505 query2.bindValue(":CARDID", dst_cardid); 505 506