projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2f97ea1
)
servicedvb.cpp: skip subtitles when pts difference is bigger than 20seconds
author
ghost
<andreas.monzner@multimedia-labs.de>
Thu, 11 Jun 2009 21:56:40 +0000
(23:56 +0200)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Thu, 11 Jun 2009 21:56:40 +0000
(23:56 +0200)
lib/service/servicedvb.cpp
patch
|
blob
|
history
diff --git
a/lib/service/servicedvb.cpp
b/lib/service/servicedvb.cpp
index
52978dc
..
a57a813
100644
(file)
--- a/
lib/service/servicedvb.cpp
+++ b/
lib/service/servicedvb.cpp
@@
-2824,17
+2824,21
@@
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 (diff < 0)
{
eDebug("[late (%d ms)]", -diff / 90);
diff = 0;
}
-// if (diff > 900000)
-// {
-// eDebug("[invalid]");
-// diff = 0;
-// }
+ if (abs(diff) > 1800000)
+ {
+ eDebug("skip [invalid]");
+ if (type == TELETEXT)
+ m_subtitle_pages.pop_front();
+ else
+ m_dvb_subtitle_pages.pop_front();
+ continue;
+ }
if ((diff/90)<20)
{