aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-06-12 00:18:44 +0200
committerghost <andreas.monzner@multimedia-labs.de>2009-06-12 00:18:44 +0200
commit2d03f14ca12ee50e2dac8b97b1a54e681dc86cef (patch)
tree51362fe7cf067f60b67f0a66dcc65cd8542ad92d /lib
parent4c4f22cbb7b9bd766b0fb3f76c4be40497379762 (diff)
downloadenigma2-2d03f14ca12ee50e2dac8b97b1a54e681dc86cef.tar.gz
enigma2-2d03f14ca12ee50e2dac8b97b1a54e681dc86cef.zip
lib/service/servicedvb.cpp: immediate show ttx subtitles instead of skip them when pts difference is to big
also immediate show ttx subtitles without pts in pes packet
Diffstat (limited to 'lib')
-rw-r--r--lib/service/servicedvb.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index a57a813b..c97980fd 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -2825,6 +2825,11 @@ void eDVBServicePlay::checkSubtitleTiming()
eDebug("%lld %lld", pos, show_time);
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);
@@ -2832,14 +2837,9 @@ void eDVBServicePlay::checkSubtitleTiming()
}
if (abs(diff) > 1800000)
{
- eDebug("skip [invalid]");
- if (type == TELETEXT)
- m_subtitle_pages.pop_front();
- else
- m_dvb_subtitle_pages.pop_front();
- continue;
+ eDebug("[invalid]... immediate show!");
+ diff = 0;
}
-
if ((diff/90)<20)
{
if (type == TELETEXT)