summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-03-27 14:52:31 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-03-27 14:52:31 +0200
commit9f0ac31f0dd617ae1575b230c9a4c00e17eb94c5 (patch)
treea073ed2d8a83d4ed84c8057d04c1235982bbcf43
parent1387660744be6a00e89e6eb5ee337baed701574c (diff)
downloadvdr-9f0ac31f0dd617ae1575b230c9a4c00e17eb94c5.tar.gz
vdr-9f0ac31f0dd617ae1575b230c9a4c00e17eb94c5.tar.bz2
Added a missing initialization to sDvbSpuRect
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY1
-rw-r--r--dvbspu.h5
3 files changed, 8 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index f010c5c0..3cea2779 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -2678,3 +2678,6 @@ Gerald Dachs <vdr@dachsweb.de>
Juergen Lock <vdr-l@jelal.kn-bremen.de>
for fixing cUnbufferedFile::Seek() in case it is compiled without USE_FADVISE
+
+Sergiu Dotenco <sergiu.dotenco@googlemail.com>
+ for reporting a missing initialization in sDvbSpuRect
diff --git a/HISTORY b/HISTORY
index 6c539e09..317deeaa 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6582,3 +6582,4 @@ Video Disk Recorder Revision History
behavior was introduced in version 1.5.7.
- Fixed scaling subtitles in case the OSD size is exactly the same as the display
size of the subtitles.
+- Added a missing initialization to sDvbSpuRect (reported by Sergiu Dotenco).
diff --git a/dvbspu.h b/dvbspu.h
index 9e33e454..863e4464 100644
--- a/dvbspu.h
+++ b/dvbspu.h
@@ -8,7 +8,7 @@
*
* parts of this file are derived from the OMS program.
*
- * $Id: dvbspu.h 2.4 2009/12/13 12:07:00 kls Exp $
+ * $Id: dvbspu.h 2.5 2011/03/27 14:50:48 kls Exp $
*/
#ifndef __DVBSPU_H
@@ -32,6 +32,9 @@ typedef struct sDvbSpuRect {
int x1, y1;
int x2, y2;
+ sDvbSpuRect(void) {
+ x1 = y1 = x2 = y2 = 0;
+ };
int width() const {
return x2 - x1 + 1;
};