Deals with code that cannot execute.
From: Erik Hovland <erik@hovland.org>
---
mythtv/libs/libmyth/mediamonitor-unix.cpp | 3 ---
mythtv/libs/libmyth/xmlparse.cpp | 24 ++++++++++++------------
2 files changed, 12 insertions(+), 15 deletions(-)
diff --git a/mythtv/libs/libmyth/mediamonitor-unix.cpp b/mythtv/libs/libmyth/mediamonitor-unix.cpp
index 47b5ad6..051a557 100644
|
a
|
b
|
bool MediaMonitorUnix::AddDevice(const char* devPath)
|
| 505 | 505 | |
| 506 | 506 | endfsent(); |
| 507 | 507 | |
| 508 | | if (mep) |
| 509 | | return AddDevice(mep); |
| 510 | | |
| 511 | 508 | return false; |
| 512 | 509 | } |
| 513 | 510 | |
diff --git a/mythtv/libs/libmyth/xmlparse.cpp b/mythtv/libs/libmyth/xmlparse.cpp
index f497a81..0d5632e 100644
|
a
|
b
|
void XMLParse::parseImageGrid(LayerSet *container, QDomElement &element)
|
| 991 | 991 | } |
| 992 | 992 | } |
| 993 | 993 | } |
| 994 | | fontProp *font1 = GetFont(activeFont); |
| 995 | | if (!font1) |
| | 994 | fontProp *activeFontProp = GetFont(activeFont); |
| | 995 | if (!activeFontProp) |
| 996 | 996 | { |
| 997 | | cerr << "Unknown font: " << (const char *)activeFont |
| | 997 | cerr << "[active font] Unknown font: " << (const char *)activeFont |
| 998 | 998 | << " in image grid: " << (const char *)name << endl; |
| 999 | 999 | return; |
| 1000 | 1000 | } |
| 1001 | 1001 | |
| 1002 | | fontProp *font2 = GetFont(selectedFont); |
| 1003 | | if (!font2) |
| | 1002 | fontProp *selectedFontProp = GetFont(selectedFont); |
| | 1003 | if (!selectedFontProp) |
| 1004 | 1004 | { |
| 1005 | | cerr << "Unknown font: " << (const char *)selectedFont |
| | 1005 | cerr << "[selected font] Unknown font: " << (const char *)selectedFont |
| 1006 | 1006 | << " in image grid: " << (const char *)name << endl; |
| 1007 | 1007 | return; |
| 1008 | 1008 | } |
| 1009 | 1009 | |
| 1010 | | fontProp *font3 = GetFont(inactiveFont); |
| 1011 | | if (!font2) |
| | 1010 | fontProp *inactiveFontProp = GetFont(inactiveFont); |
| | 1011 | if (!inactiveFontProp) |
| 1012 | 1012 | { |
| 1013 | | cerr << "Unknown font: " << (const char *)inactiveFont |
| | 1013 | cerr << "inactive font] Unknown font: " << (const char *)inactiveFont |
| 1014 | 1014 | << " in image grid: " << (const char *)name << endl; |
| 1015 | 1015 | return; |
| 1016 | 1016 | } |
| 1017 | 1017 | |
| 1018 | 1018 | UIImageGridType *grid = new UIImageGridType(name, order.toInt()); |
| 1019 | 1019 | grid->SetScreen(wmult, hmult); |
| 1020 | | grid->setActiveFont(font1); |
| 1021 | | grid->setSelectedFont(font2); |
| 1022 | | grid->setInactiveFont(font3); |
| | 1020 | grid->setActiveFont(activeFontProp); |
| | 1021 | grid->setSelectedFont(selectedFontProp); |
| | 1022 | grid->setInactiveFont(inactiveFontProp); |
| 1023 | 1023 | grid->setCutDown(cutdown); |
| 1024 | 1024 | grid->setShowChecks(showChecks); |
| 1025 | 1025 | grid->setShowSelected(showSelected); |