]> git.sesse.net Git - vlc/commitdiff
codec/zvbi: Only reset subpicture in text mode
authorJulian Scheel <julian@jusst.de>
Fri, 10 Oct 2014 09:21:07 +0000 (11:21 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 10 Oct 2014 10:17:29 +0000 (12:17 +0200)
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@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/zvbi.c

index a30d0bde0b7858ed6c4bf35ac7304fba8c5d9a93..fa5b7c3ff2205ac4d5b55dd588f246f44002118b 100644 (file)
@@ -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,