[vlc-commits] codec: spudec: force osd start time for forced spu overlays

Francois Cartegnie git at videolan.org
Thu Jul 6 13:33:18 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jul  6 13:11:18 2017 +0200| [bccc6d1326e5757221ed372917222a134b7a61bb] | committer: Francois Cartegnie

codec: spudec: force osd start time for forced spu overlays

workarounds invisible overlay menus/highlight
refs #5055

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

 modules/codec/spudec/parse.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/spudec/parse.c b/modules/codec/spudec/parse.c
index 9ea200ff49..0db3b4deb7 100644
--- a/modules/codec/spudec/parse.c
+++ b/modules/codec/spudec/parse.c
@@ -238,6 +238,10 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu,
         case SPU_CMD_FORCE_DISPLAY: /* 00 (force displaying) */
             p_spu->i_start = i_pts + date;
             p_spu->b_ephemer = true;
+            /* ignores picture date as display start time
+             * works around non displayable (offset by few ms)
+             * spu menu over still frame in SPU_Select */
+            p_spu->b_subtitle = false;
             i_index += 1;
             break;
 



More information about the vlc-commits mailing list