summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY5
-rw-r--r--config.h10
-rw-r--r--dvbsubtitle.c4
4 files changed, 14 insertions, 7 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index be533c18..d00ec5e5 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1868,6 +1868,8 @@ Luca Olivetti <luca@ventoso.org>
"repeat" keypresses very fast
for reporting a broken entry 'A111.1W' in sources.conf
for translating OSD texts to the Spanish and Catalan language
+ for fixing scaling subtitles in case the primary device's GetVideoSize() function
+ doesn't return actual values
Mikko Salo <mikko.salo@ppe.inet.fi>
for suggesting to make the setup option "DVB/Video display format" available only
diff --git a/HISTORY b/HISTORY
index 42473309..056a04ab 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6742,3 +6742,8 @@ Video Disk Recorder Revision History
Detecting frames in case the Picture Start Code or Access Unit Delimiter
extends over TS packet boundaries is now done by locally skipping TS packets
in cFrameDetector.
+
+2011-09-10: Version 1.7.22
+
+- Fixed scaling subtitles in case the primary device's GetVideoSize() function doesn't
+ return actual values (thanks to Luca Olivetti).
diff --git a/config.h b/config.h
index c51e3df7..ea167c05 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 2.34 2011/08/20 08:51:47 kls Exp $
+ * $Id: config.h 2.35 2011/09/10 09:45:55 kls Exp $
*/
#ifndef __CONFIG_H
@@ -22,13 +22,13 @@
// VDR's own version number:
-#define VDRVERSION "1.7.21"
-#define VDRVERSNUM 10721 // Version * 10000 + Major * 100 + Minor
+#define VDRVERSION "1.7.22"
+#define VDRVERSNUM 10722 // Version * 10000 + Major * 100 + Minor
// The plugin API's version number:
-#define APIVERSION "1.7.21"
-#define APIVERSNUM 10721 // Version * 10000 + Major * 100 + Minor
+#define APIVERSION "1.7.22"
+#define APIVERSNUM 10722 // Version * 10000 + Major * 100 + Minor
// When loading plugins, VDR searches them by their APIVERSION, which
// may be smaller than VDRVERSION in case there have been no changes to
diff --git a/dvbsubtitle.c b/dvbsubtitle.c
index 43d072d4..7b95fc3a 100644
--- a/dvbsubtitle.c
+++ b/dvbsubtitle.c
@@ -7,7 +7,7 @@
* Original author: Marco Schlüßler <marco@lordzodiac.de>
* With some input from the "subtitle plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
*
- * $Id: dvbsubtitle.c 2.18 2011/08/13 13:33:00 kls Exp $
+ * $Id: dvbsubtitle.c 2.19 2011/09/10 09:43:40 kls Exp $
*/
@@ -887,7 +887,7 @@ void cDvbSubtitleConverter::SetOsdData(void)
double VideoAspect;
cDevice::PrimaryDevice()->GetOsdSize(OsdWidth, OsdHeight, OsdAspect);
cDevice::PrimaryDevice()->GetVideoSize(VideoWidth, VideoHeight, VideoAspect);
- if (OsdWidth == displayWidth && OsdHeight == displayHeight) {
+ if (OsdWidth == displayWidth && OsdHeight == displayHeight || VideoWidth == 0) {
osdFactorX = osdFactorY = 1.0;
osdDeltaX = osdDeltaY = 0;
}