diff --git a/mythtv/libs/libmythtv/dbcheck.cpp b/mythtv/libs/libmythtv/dbcheck.cpp
index 9018e78..74dcd74 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 = "1168"; |
| | 13 | const QString currentDatabaseVersion = "1169"; |
| 14 | 14 | |
| 15 | 15 | static bool UpdateDBVersionNumber(const QString &newnumber); |
| 16 | 16 | static bool performActualUpdate(const QString updates[], QString version, |
| … |
… |
static bool doUpgradeTVDatabaseSchema(vo |
| 2669 | 2669 | if (!performActualUpdate(updates, "1168", dbver)) |
| 2670 | 2670 | return false; |
| 2671 | 2671 | } |
| | 2672 | |
| | 2673 | if (dbver == "1168") |
| | 2674 | { |
| | 2675 | const QString updates[] = { |
| | 2676 | "UPDATE dtv_multiplex SET sistandard='mpeg', networkid=NULL, transportid=NULL " |
| | 2677 | "WHERE sistandard = 'dvb' AND networkid IS NULL OR networkid < 1;", |
| | 2678 | "" |
| | 2679 | }; |
| | 2680 | |
| | 2681 | if (!performActualUpdate(updates, "1169", dbver)) |
| | 2682 | return false; |
| | 2683 | } |
| 2672 | 2684 | //"ALTER TABLE cardinput DROP COLUMN preference;" in 0.22 |
| 2673 | 2685 | //"ALTER TABLE channel DROP COLUMN atscsrcid;" in 0.22 |
| 2674 | 2686 | //"ALTER TABLE recordedmarkup DROP COLUMN offset;" in 0.22 |
diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
index a3141c1..806feb7 100644
|
a
|
b
|
bool TVRec::SetupDTVSignalMonitor(void) |
| 1666 | 1666 | bool fta = CardUtil::IgnoreEncrypted( |
| 1667 | 1667 | GetCaptureCardNum(), channel->GetCurrentInput()); |
| 1668 | 1668 | |
| | 1669 | QString sistandard = dtvchan->GetSIStandard(); |
| | 1670 | |
| 1669 | 1671 | // Check if this is an ATSC Channel |
| 1670 | 1672 | int major = dtvchan->GetMajorChannel(); |
| 1671 | 1673 | int minor = dtvchan->GetMinorChannel(); |
| … |
… |
bool TVRec::SetupDTVSignalMonitor(void) |
| 1701 | 1703 | // Check if this is an DVB channel |
| 1702 | 1704 | int progNum = dtvchan->GetProgramNumber(); |
| 1703 | 1705 | #ifdef USING_DVB |
| 1704 | | int netid = dtvchan->GetOriginalNetworkID(); |
| 1705 | | int tsid = dtvchan->GetTransportID(); |
| 1706 | | if (netid > 0 && tsid > 0 && progNum >= 0) |
| | 1706 | if (progNum >= 0 && sistandard == "dvb") |
| 1707 | 1707 | { |
| | 1708 | int netid = dtvchan->GetOriginalNetworkID(); |
| | 1709 | int tsid = dtvchan->GetTransportID(); |
| | 1710 | |
| 1708 | 1711 | uint neededVideo = 0; |
| 1709 | 1712 | uint neededAudio = 0; |
| 1710 | 1713 | |