]> git.sesse.net Git - vlc/commitdiff
zvbi: Set stop pts only for subtitle teletext
authorDennis Hamester <dhamester@jusst.de>
Thu, 6 Feb 2014 13:30:42 +0000 (13:30 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Feb 2014 14:03:14 +0000 (15:03 +0100)
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@jusst.de>
Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/zvbi.c

index 9049d3a3b05221361fa2104875df2fad195411df..c9f36dce7f5aa644769ebc051646d4b94265dfa2 100644 (file)
@@ -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;