[vlc-devel] [PATCH] codec/zvbi: Only reset subpicture in text mode
Julian Scheel
julian at jusst.de
Fri Oct 10 11:21:07 CEST 2014
The subpicture reset, as stated in the comment, is only required when
rendering text-subtitles. In fact it causes an invalid image to be generated
and possibly output in non-text mode. Hence disable the picture recreation for
non-text mode.
Signed-off-by: Julian Scheel <julian at jusst.de>
---
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 c7afb33..29db306 100644
--- a/modules/codec/zvbi.c
+++ b/modules/codec/zvbi.c
@@ -372,7 +372,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
if( !b_cached )
{
- if( p_sys->i_last_page != i_wanted_page )
+ if( p_sys->b_text && p_sys->i_last_page != i_wanted_page )
{
/* We need to reset the subtitle */
p_spu = Subpicture( p_dec, &fmt, true,
--
2.1.2
More information about the vlc-devel
mailing list