summaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2010-06-20 23:22:35 +0200
committerThomas Günther <tom@toms-cafe.de>2010-06-20 23:22:35 +0200
commitd980ca65823a1c2df1809fc8ecb60b791ebb960f (patch)
tree2dd02cc1488374b7d4b870f001bf0ef429133353 /status.c
parent73190a01d7fc254b7a1048914f0c05f80054dd3c (diff)
downloadvdr-plugin-text2skin-d980ca65823a1c2df1809fc8ecb60b791ebb960f.tar.gz
vdr-plugin-text2skin-d980ca65823a1c2df1809fc8ecb60b791ebb960f.tar.bz2
Fixed crash when deleting ongoing timers or their recordings (closes #306)
Diffstat (limited to 'status.c')
-rw-r--r--status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/status.c b/status.c
index e59764e..b8cf1eb 100644
--- a/status.c
+++ b/status.c
@@ -401,6 +401,8 @@ cxType cText2SkinStatus::GetTokenData(const txToken &Token)
} else if (mRecordings.size() > 0) {
mRecordingsLock.Lock();
uint now = cTimeMs::Now();
+ if (mCurrentRecording >= mRecordings.size())
+ mCurrentRecording = mNextRecording = 0;
if (mNextRecording == 0)
mNextRecording = now + 2000;
else if (now >= mNextRecording) {