summaryrefslogtreecommitdiff
path: root/menuitem.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-08-24 09:18:45 +0200
committerlouis <louis.braun@gmx.de>2013-08-24 09:18:45 +0200
commit128a04a3039c5dffd08b29e97c9dd00625aa977d (patch)
tree6df80a44bca1d9486b08b793a640446c7151edc3 /menuitem.c
parentac9ae79a214ca4707a83229d854c0ca5180be398 (diff)
downloadskin-nopacity-128a04a3039c5dffd08b29e97c9dd00625aa977d.tar.gz
skin-nopacity-128a04a3039c5dffd08b29e97c9dd00625aa977d.tar.bz2
fixed an possible uninitialised variable in recordings menu
Diffstat (limited to 'menuitem.c')
-rw-r--r--menuitem.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/menuitem.c b/menuitem.c
index c58ec6d..9f83992 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -917,6 +917,8 @@ cNopacityRecordingMenuItem::cNopacityRecordingMenuItem(cOsd *osd, const cRecordi
this->Total = Total;
this->New = New;
this->vidWin = vidWin;
+ posterWidth = 0;
+ posterHeight = 0;
}
cNopacityRecordingMenuItem::~cNopacityRecordingMenuItem(void) {
@@ -964,11 +966,11 @@ void cNopacityRecordingMenuItem::SetPoster(void) {
const cRecordingInfo *info = Recording->Info();
if (info) {
const cEvent *event = info->GetEvent();
- static cPlugin *pTVScrapper = cPluginManager::GetPlugin("tvscrapper");
- if (pTVScrapper && event) {
+ static cPlugin *pTVScraper = cPluginManager::GetPlugin("tvscraper");
+ if (pTVScraper && event) {
poster.event = event;
poster.isRecording = true;
- if (pTVScrapper->Service("TVScrapperGetPoster", &poster)) {
+ if (pTVScraper->Service("TVScraperGetPoster", &poster)) {
hasPoster = true;
int posterWidthOrig = poster.media.width;
int posterHeightOrig = poster.media.height;