commit 52ad72bafbdf6aa83f773e6470ce732af9c789d0
Author: Mark Spieth <mspieth@digivation.com.au>
Date: Sun Sep 19 12:30:17 2010 +1000
fix crash in lcd timer if too early
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index c18ada3..42d34e4 100644
a
|
b
|
int MythPlayer::GetSecondsBehind(void) const |
4197 | 4197 | void MythPlayer::calcSliderPos(osdInfo &info, bool paddedFields) |
4198 | 4198 | { |
4199 | 4199 | bool islive = false; |
4200 | | int chapter = GetCurrentChapter() + 1; |
4201 | | int title = GetCurrentTitle() + 1; |
4202 | | info.text.insert("chapteridx", chapter ? QString().number(chapter) : QString()); |
4203 | | info.text.insert("titleidx", title ? QString().number(title) : QString()); |
| 4200 | if (GetDecoder()) |
| 4201 | { |
| 4202 | int chapter = GetCurrentChapter() + 1; |
| 4203 | int title = GetCurrentTitle() + 1; |
| 4204 | info.text.insert("chapteridx", chapter ? QString().number(chapter) : QString()); |
| 4205 | info.text.insert("titleidx", title ? QString().number(title) : QString()); |
| 4206 | } |
4204 | 4207 | info.values.insert("position", 0); |
4205 | 4208 | info.values.insert("progbefore", 0); |
4206 | 4209 | info.values.insert("progafter", 0); |