diff --git a/mythtv/libs/libmythtv/dbcheck.cpp b/mythtv/libs/libmythtv/dbcheck.cpp
index 3a95a46..35e7480 100644
a
|
b
|
using namespace std;
|
10 | 10 | #include "mythdbcon.h" |
11 | 11 | |
12 | 12 | /// This is the DB schema version expected by the running MythTV instance. |
13 | | const QString currentDatabaseVersion = "1170"; |
| 13 | const QString currentDatabaseVersion = "1171"; |
14 | 14 | |
15 | 15 | static bool UpdateDBVersionNumber(const QString &newnumber); |
16 | 16 | static bool performActualUpdate(const QString updates[], QString version, |
… |
… |
thequery,
|
2729 | 2729 | return false; |
2730 | 2730 | } |
2731 | 2731 | |
| 2732 | if (dbver == "1170") |
| 2733 | { |
| 2734 | const QString updates[] = { |
| 2735 | "UPDATE capturecard,cardinput,videosource " |
| 2736 | " SET dvb_on_demand = 0 " |
| 2737 | " WHERE capturecard.cardid = cardinput.cardid " |
| 2738 | " AND cardinput.sourceid = videosource.sourceid " |
| 2739 | " AND useeit = 1 " |
| 2740 | " AND dvb_on_demand = 1;", |
| 2741 | ""}; |
| 2742 | |
| 2743 | if (!performActualUpdate(updates, "1171", dbver)) |
| 2744 | return false; |
| 2745 | } |
| 2746 | |
2732 | 2747 | |
2733 | 2748 | //"ALTER TABLE cardinput DROP COLUMN preference;" in 0.22 |
2734 | 2749 | //"ALTER TABLE channel DROP COLUMN atscsrcid;" in 0.22 |
diff --git a/mythtv/libs/libmythtv/eitscanner.cpp b/mythtv/libs/libmythtv/eitscanner.cpp
index d9546b8..d60319c 100644
a
|
b
|
void EITScanner::RunEventLoop(void)
|
125 | 125 | } |
126 | 126 | |
127 | 127 | if (activeScanNextChan == activeScanChannels.end()) |
128 | | activeScanNextChan = activeScanChannels.begin(); |
| 128 | { |
| 129 | exitThread = true; |
| 130 | break; |
| 131 | } |
129 | 132 | |
130 | 133 | if (!(*activeScanNextChan).isEmpty()) |
131 | 134 | { |
diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
index 459d10f..ffb83e5 100644
a
|
b
|
void *TVRec::RecorderThread(void *param)
|
1143 | 1143 | return NULL; |
1144 | 1144 | } |
1145 | 1145 | |
1146 | | bool get_use_eit(uint cardid) |
| 1146 | static bool get_use_eit(uint cardid) |
1147 | 1147 | { |
1148 | 1148 | MSqlQuery query(MSqlQuery::InitCon()); |
1149 | 1149 | query.prepare( |
… |
… |
static bool is_dishnet_eit(int cardid)
|
1183 | 1183 | return false; |
1184 | 1184 | } |
1185 | 1185 | |
| 1186 | static bool get_dvb_on_demand(uint cardid) |
| 1187 | { |
| 1188 | MSqlQuery query(MSqlQuery::InitCon()); |
| 1189 | query.prepare( |
| 1190 | "SELECT dvb_on_demand " |
| 1191 | "FROM capturecard " |
| 1192 | "WHERE cardid = :CARDID"); |
| 1193 | query.bindValue(":CARDID", cardid); |
| 1194 | |
| 1195 | if (!query.exec() || !query.isActive()) |
| 1196 | { |
| 1197 | MythContext::DBError("get_dvb_on_demand", query); |
| 1198 | return false; |
| 1199 | } |
| 1200 | else if (query.next()) |
| 1201 | return query.value(0).toBool(); |
| 1202 | return false; |
| 1203 | } |
| 1204 | |
1186 | 1205 | /** \fn TVRec::RunTV(void) |
1187 | 1206 | * \brief Event handling method, contains event loop. |
1188 | 1207 | */ |
… |
… |
void TVRec::RunTV(void)
|
1345 | 1364 | "for all sources on this card."); |
1346 | 1365 | eitScanStartTime = eitScanStartTime.addYears(1); |
1347 | 1366 | } |
| 1367 | else if (get_dvb_on_demand(GetCaptureCardNum())) |
| 1368 | { |
| 1369 | VERBOSE(VB_EIT, LOC + "EIT scanning disabled " |
| 1370 | "since the card should be used only on demand."); |
| 1371 | eitScanStartTime = eitScanStartTime.addYears(1); |
| 1372 | } |
1348 | 1373 | else |
1349 | 1374 | { |
1350 | 1375 | scanner->StartActiveScan( |
diff --git a/mythtv/libs/libmythtv/videosource.cpp b/mythtv/libs/libmythtv/videosource.cpp
index 67eb18d..c8d2b4a 100644
a
|
b
|
class DVBOnDemand : public CheckBoxSetti
|
908 | 908 | setHelpText( |
909 | 909 | QObject::tr("This option makes the backend dvb-recorder " |
910 | 910 | "only open the card when it is actually in-use, leaving " |
911 | | "it free for other programs at other times.")); |
| 911 | "it free for other programs at other times " |
| 912 | "(only recording and live-tv qualify as in-use, " |
| 913 | "the EIT scan does not).")); |
912 | 914 | }; |
913 | 915 | }; |
914 | 916 | |