summaryrefslogtreecommitdiff
path: root/dxr3spudecoder.c
diff options
context:
space:
mode:
authorscop <scop>2005-04-21 15:57:02 +0000
committerscop <scop>2005-04-21 15:57:02 +0000
commit3c99438d616276422d0635f7a66cdab1b149c4bb (patch)
tree33e7681074ed68d99204bd9641d26d6a81db6727 /dxr3spudecoder.c
parent27a7e3d8157ef93db69b02bc5a187c20013986cb (diff)
downloadvdr-plugin-dxr3-3c99438d616276422d0635f7a66cdab1b149c4bb.tar.gz
vdr-plugin-dxr3-3c99438d616276422d0635f7a66cdab1b149c4bb.tar.bz2
Add support for mandatory subtitles (Marco Schlüßler).
Diffstat (limited to 'dxr3spudecoder.c')
-rw-r--r--dxr3spudecoder.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dxr3spudecoder.c b/dxr3spudecoder.c
index 8b09524..4824e6c 100644
--- a/dxr3spudecoder.c
+++ b/dxr3spudecoder.c
@@ -181,6 +181,8 @@ bool cDxr3SpuBitmap::getMinSize(const aDxr3SpuPalDescr paldescr,
<< size.x2 << ", " << size.y2 << ")\n";
}
*/
+ if (size.x1 > size.x2 || size.y1 > size.y2)
+ return false;
return ret;
}
@@ -266,6 +268,7 @@ cDxr3SpuDecoder::cDxr3SpuDecoder()
spu = NULL;
osd = NULL;
spubmp = NULL;
+ allowedShow = true;
}
// ==================================
@@ -302,6 +305,9 @@ void cDxr3SpuDecoder::processSPU(uint32_t pts, uint8_t * buf)
prev_DCSQ_offset = 0;
clean = true;
+#if VDRVERSNUM >= 10318
+ allowedShow = AllowedShow;
+#endif
}
// ==================================
@@ -647,7 +653,7 @@ int cDxr3SpuDecoder::setTime(uint32_t pts)
state = spSHOW;
}
- if (state == spSHOW || state == spMENU)
+ if ((state == spSHOW && allowedShow) || state == spMENU)
{
Draw();
}