aboutsummaryrefslogtreecommitdiff
path: root/lib/service/servicedvb.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-06-12 00:21:33 +0200
committerFelix Domke <tmbinc@elitedvb.net>2009-06-12 00:21:33 +0200
commit5a6713898cddeded5fc88d7316861d88400f57f1 (patch)
treed38166b269f59e63631eaadee30efb66838ee3c1 /lib/service/servicedvb.cpp
parent1a2b0a4379ee3e9d16108c52abdadc9bb85675c1 (diff)
parent2d03f14ca12ee50e2dac8b97b1a54e681dc86cef (diff)
downloadenigma2-5a6713898cddeded5fc88d7316861d88400f57f1.tar.gz
enigma2-5a6713898cddeded5fc88d7316861d88400f57f1.zip
Merge branch 'master' of /home/tmbinc/enigma2-git
Diffstat (limited to 'lib/service/servicedvb.cpp')
-rw-r--r--lib/service/servicedvb.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index bd15bcdc..c256213d 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -2826,18 +2826,22 @@ void eDVBServicePlay::checkSubtitleTiming()
m_decoder->getPTS(0, pos);
eDebug("%lld %lld", pos, show_time);
- int diff = show_time - pos;
+ int diff = show_time - pos;
+ if (type == TELETEXT && !page.m_have_pts)
+ {
+ eDebug("ttx subtitle page without pts... immediate show");
+ diff = 0;
+ }
if (diff < 0)
{
eDebug("[late (%d ms)]", -diff / 90);
diff = 0;
}
-// if (diff > 900000)
-// {
-// eDebug("[invalid]");
-// diff = 0;
-// }
-
+ if (abs(diff) > 1800000)
+ {
+ eDebug("[invalid]... immediate show!");
+ diff = 0;
+ }
if ((diff/90)<20)
{
if (type == TELETEXT)