[vlc-commits] zvbi: Set stop pts only for subtitle teletext

Dennis Hamester git at videolan.org
Sat Feb 8 15:03:30 CET 2014


vlc | branch: master | Dennis Hamester <dhamester at jusst.de> | Thu Feb  6 13:30:42 2014 +0000| [18305c12b6469c82fd84560f3935389662bc0475] | committer: Jean-Baptiste Kempf

zvbi: Set stop pts only for subtitle teletext

A maximum display time does not make sense for real teletext pages. Instead
they should be displayed until the user disables teletext or the page is
updated. Therefore do not set a stop timestamp on normal pages, but only when
rendering in text mode, which is meant for subtitles, where the timeout makes
sense.

Signed-off-by: Dennis Hamester <dhamester at jusst.de>
Signed-off-by: Julian Scheel <julian at jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18305c12b6469c82fd84560f3935389662bc0475
---

 modules/codec/zvbi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/zvbi.c b/modules/codec/zvbi.c
index 9049d3a..c9f36dc 100644
--- a/modules/codec/zvbi.c
+++ b/modules/codec/zvbi.c
@@ -533,7 +533,7 @@ static subpicture_t *Subpicture( decoder_t *p_dec, video_format_t *p_fmt,
     p_spu->p_region->i_y = 0;
 
     p_spu->i_start = i_pts;
-    p_spu->i_stop = i_pts + 10000000;
+    p_spu->i_stop = b_text ? i_pts + 1000000 : 0;
     p_spu->b_ephemer = true;
     p_spu->b_absolute = b_text ? false : true;
 



More information about the vlc-commits mailing list