summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/menu.cpp2
-rw-r--r--plugin/status.cpp10
2 files changed, 9 insertions, 3 deletions
diff --git a/plugin/menu.cpp b/plugin/menu.cpp
index 08987c9..1ad8d84 100644
--- a/plugin/menu.cpp
+++ b/plugin/menu.cpp
@@ -116,7 +116,7 @@ bool cMenuMarkAd::write()
if (!header)
{
Add(new cOsdItem(tr("no running markad found"),osUnknown,false),true);
- lastpos=NULL;
+ lastpos=0;
}
Display();
return header;
diff --git a/plugin/status.cpp b/plugin/status.cpp
index 9b49294..84801f1 100644
--- a/plugin/status.cpp
+++ b/plugin/status.cpp
@@ -141,7 +141,10 @@ bool cStatusMarkAd::LogoExists(const char *Name)
break;
}
}
- if (!timer) return false;
+ if (!timer) {
+ esyslog("markad: cannot find internal recording structure for %s",Name);
+ return false;
+ }
const cChannel *chan=timer->Channel();
if (!chan) return false;
@@ -193,7 +196,10 @@ void cStatusMarkAd::Recording(const cDevice *UNUSED(Device), const char *Name,
if (On)
{
- if (setup->LogoOnly && !LogoExists(Name)) return;
+ if (setup->LogoOnly && !LogoExists(Name)) {
+ dsyslog("markad: no logo found for %s",Name);
+ return;
+ }
// Start markad with recording
if (!Start(FileName,Name,false)) {
esyslog("markad: failed starting on %s",FileName);