summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-08-25 17:25:37 +0200
committerlouis <louis.braun@gmx.de>2013-08-25 17:25:37 +0200
commit1afae34c608acb351356291fa8e466ec9a9ea975 (patch)
tree302a3c0fdd097f9648ce25bbe4f8a77682a1dace
parentd348dfdab620cce7f0c24da3e78eff7ccb655d1d (diff)
downloadskin-nopacity-1afae34c608acb351356291fa8e466ec9a9ea975.tar.gz
skin-nopacity-1afae34c608acb351356291fa8e466ec9a9ea975.tar.bz2
fixed possible uninitialised variable in recordingmenuitem
-rw-r--r--menuitem.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/menuitem.c b/menuitem.c
index 9f83992..74faba2 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -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;