From 29fee5f9a212851d4412ae57f3b2a12e78c011fa Mon Sep 17 00:00:00 2001 From: mrwastl Date: Sat, 15 Oct 2011 17:15:42 +0200 Subject: skinconfig.c: don't crash when replay.control is NULL; plugin.c: beauty fix --- plugin.c | 1 + skinconfig.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.c b/plugin.c index 00b70dc..6b314ad 100644 --- a/plugin.c +++ b/plugin.c @@ -645,6 +645,7 @@ cString cPluginGraphLCD::SVDRPCommand(const char *Command, const char *Option, i } } } + return NULL; /* make gcc happy */ } cOsdObject * cPluginGraphLCD::MainMenuAction() 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 -- cgit v1.2.3