summaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-03-31 17:40:05 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-04-01 17:05:07 +0200
commit7d44c8f91f244d2d7c9793c9ea985567c21f2559 (patch)
tree10b5c1e9aa13056429c8f7e76e48e1ec62dbbe28 /view.c
parente3995189003fd7c180ef53db2a785b61ef16fbd9 (diff)
downloadvdr-plugin-tvguide-7d44c8f91f244d2d7c9793c9ea985567c21f2559.tar.gz
vdr-plugin-tvguide-7d44c8f91f244d2d7c9793c9ea985567c21f2559.tar.bz2
Correct Warnung: Variable »ti« gesetzt
Diffstat (limited to 'view.c')
-rw-r--r--view.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/view.c b/view.c
index 8391a2f..3afa7ab 100644
--- a/view.c
+++ b/view.c
@@ -121,13 +121,9 @@ void cView::DrawHeader(void) {
pixmapHeader->DrawText(cPoint(xText, ySubtitle), CutText(subTitle, textWidthMax, fontHeader).c_str(), theme.Color(clrFont), theme.Color(clrStatusHeader), fontHeader);
//REC Icon
eTimerMatch timerMatch=tmNone;
-#if VDRVERSNUM >= 20301
- const cTimer *ti;
-#else
- cTimer *ti;
-#endif
if (!event)
return;
+ const cTimer *ti;
if (tvguideConfig.useRemoteTimers && pRemoteTimers) {
RemoteTimers_GetMatch_v1_0 rtMatch;
rtMatch.event = event;
@@ -142,7 +138,7 @@ void cView::DrawHeader(void) {
ti = Timers.GetMatch(event, &timerMatch);
#endif
}
- if (timerMatch == tmFull) {
+ if (ti && timerMatch == tmFull) {
cString recIconText(" REC ");
int widthIcon = fontManager.FontDetailHeader->Width(*recIconText);
int height = fontManager.FontDetailHeader->Height()+10;