]> git.sesse.net Git - vlc/commitdiff
Fixed DVB-subtitles decoder subpicture flag.
authorPeter Bak Nielsen <peter.bak.nielsen@gmail.com>
Sun, 3 Jan 2010 18:52:21 +0000 (19:52 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 8 Feb 2010 19:15:59 +0000 (20:15 +0100)
  The module did not mark the subtitles it produces with "b_subtitle == true",
  which causes them to be handled as OSD, and thus allowing them to become
  out of sync unless video was streamed in real time...

Signed-off-by: Laurent Aimar <fenrir@videolan.org>
modules/codec/dvbsub.c

index 9f7d36005cb1a280746c44d6760269119bc98ee2..43c51cc10d1454c258168e51c4d0d7aa10d7bc2e 100644 (file)
@@ -1488,6 +1488,7 @@ static subpicture_t *render( decoder_t *p_dec )
     p_spu->b_ephemer = true;
     //p_spu->b_fade = true;
     //p_spu->i_stop = p_spu->i_start + (mtime_t) (i_timeout * 1000000);
+    p_spu->b_subtitle = true;
 
     /* Correct positioning of SPU */
     i_base_x = p_sys->i_spu_x;