]> git.sesse.net Git - vlc/commitdiff
zvbi: set position to be absolute only for non-text subtitles and give reasonable...
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 12 Nov 2013 13:31:27 +0000 (15:31 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 12 Nov 2013 15:39:27 +0000 (17:39 +0200)
modules/codec/zvbi.c

index 1bd5f6b20ed8e0b5ac5135851d8aa1ad27a3931b..ffc06cb99ebd3e8662de2ff06065602cc7b98f45 100644 (file)
@@ -509,12 +509,12 @@ static subpicture_t *Subpicture( decoder_t *p_dec, video_format_t *p_fmt,
 
     p_spu->p_region->i_x = 0;
     p_spu->p_region->i_y = 0;
-    p_spu->p_region->i_align = i_align;
 
     p_spu->i_start = i_pts;
-    p_spu->i_stop = 0;
+    p_spu->i_stop = i_pts + 10000000;
     p_spu->b_ephemer = true;
-    p_spu->b_absolute = true;
+    p_spu->b_absolute = b_text ? false : true;
+    p_spu->p_region->i_align = i_align;
 
     if( !b_text )
     {