diff options
author | louis <louis.braun@gmx.de> | 2013-08-25 17:25:37 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-08-25 17:25:37 +0200 |
commit | 1afae34c608acb351356291fa8e466ec9a9ea975 (patch) | |
tree | 302a3c0fdd097f9648ce25bbe4f8a77682a1dace | |
parent | d348dfdab620cce7f0c24da3e78eff7ccb655d1d (diff) | |
download | skin-nopacity-1afae34c608acb351356291fa8e466ec9a9ea975.tar.gz skin-nopacity-1afae34c608acb351356291fa8e466ec9a9ea975.tar.bz2 |
fixed possible uninitialised variable in recordingmenuitem
-rw-r--r-- | menuitem.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -919,6 +919,7 @@ cNopacityRecordingMenuItem::cNopacityRecordingMenuItem(cOsd *osd, const cRecordi this->vidWin = vidWin; posterWidth = 0; posterHeight = 0; + hasPoster = false; } cNopacityRecordingMenuItem::~cNopacityRecordingMenuItem(void) { @@ -975,13 +976,13 @@ void cNopacityRecordingMenuItem::SetPoster(void) { int posterWidthOrig = poster.media.width; int posterHeightOrig = poster.media.height; if ((posterWidthOrig > 10) && (posterHeightOrig > 10)) { - posterHeight = height - 10; + posterHeight = height - 10; posterWidth = posterWidthOrig * ((double)posterHeight / (double)posterHeightOrig); } else { hasPoster = false; posterHeight = 0; posterWidth = 0; - } + } } else { hasPoster = false; posterHeight = 0; |