summaryrefslogtreecommitdiff
path: root/dvbspu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-12-13 12:16:44 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-12-13 12:16:44 +0100
commit140ed23e7e9751b2ed9acbf024ecd967a80e30bf (patch)
tree231e6664b25e97c191fcf2ec24c67b7d3758ce9d /dvbspu.c
parenta648187de4e10f73a0ee4edcaf7616f73ce2b485 (diff)
downloadvdr-140ed23e7e9751b2ed9acbf024ecd967a80e30bf.tar.gz
vdr-140ed23e7e9751b2ed9acbf024ecd967a80e30bf.tar.bz2
Some fixes to dvbspu.[hc]
Diffstat (limited to 'dvbspu.c')
-rw-r--r--dvbspu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dvbspu.c b/dvbspu.c
index a0c71201..f74febdd 100644
--- a/dvbspu.c
+++ b/dvbspu.c
@@ -8,7 +8,7 @@
*
* parts of this file are derived from the OMS program.
*
- * $Id: dvbspu.c 2.4 2009/12/05 16:06:12 kls Exp $
+ * $Id: dvbspu.c 2.5 2009/12/13 12:10:03 kls Exp $
*/
#include "dvbspu.h"
@@ -348,7 +348,7 @@ int cDvbSpuBitmap::getMinBpp(const aDvbSpuPalDescr paldescr)
col++;
}
}
- return col > 2 ? 2 : 1;
+ return col > 2 ? 4 : 1;
}
int cDvbSpuDecoder::CalcAreaBpp(cBitmap *fgbmp, cBitmap *bgbmp)
@@ -386,6 +386,9 @@ void cDvbSpuDecoder::Draw(void)
if (spubmp->getMinSize(palDescr, bgsize))
bg = spubmp->getBitmap(palDescr, palette, bgsize);
+ if (!fg || !bg || !osd)
+ Hide();
+
if (osd == NULL) {
restricted_osd = false;
osd = cOsdProvider::NewOsd(0, 0);