summaryrefslogtreecommitdiff
path: root/skinconfig.c
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-10-15 17:15:42 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-10-15 17:15:42 +0200
commit29fee5f9a212851d4412ae57f3b2a12e78c011fa (patch)
tree5c9fa7a32df47f86d6b514fa6fbe92cada66b440 /skinconfig.c
parent5a4594926ee5f435999ad0c18837117e52741b8b (diff)
downloadvdr-plugin-graphlcd-29fee5f9a212851d4412ae57f3b2a12e78c011fa.tar.gz
vdr-plugin-graphlcd-29fee5f9a212851d4412ae57f3b2a12e78c011fa.tar.bz2
skinconfig.c: don't crash when replay.control is NULL; plugin.c: beauty fix
Diffstat (limited to 'skinconfig.c')
-rw-r--r--skinconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/skinconfig.c b/skinconfig.c
index 1c351e1..73caf79 100644
--- a/skinconfig.c
+++ b/skinconfig.c
@@ -553,7 +553,7 @@ GLCD::cType cGraphLCDSkinConfig::GetToken(const GLCD::tSkinToken & Token)
tReplayState replay = mState->GetReplayState();
double framesPerSec =
#if VDRVERSNUM >= 10701
- replay.control->FramesPerSecond()
+ (replay.control) ? replay.control->FramesPerSecond() : (double)DEFAULTFRAMESPERSECOND
#else
(double)FRAMESPERSEC
#endif