diff options
author | louis <louis.braun@gmx.de> | 2013-08-24 09:18:45 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-08-24 09:18:45 +0200 |
commit | 128a04a3039c5dffd08b29e97c9dd00625aa977d (patch) | |
tree | 6df80a44bca1d9486b08b793a640446c7151edc3 /menuitem.c | |
parent | ac9ae79a214ca4707a83229d854c0ca5180be398 (diff) | |
download | skin-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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |