[vlc-commits] [Git][videolan/vlc][master] input: es_out: force captions mode to be exclusive

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Wed Oct 6 13:30:30 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
71d4e203 by Francois Cartegnie at 2021-10-06T13:19:04+00:00
input: es_out: force captions mode to be exclusive

Captions used to fallback on 608 when 708 is undetected, but
as probing can be asynchronous, we have no way to deal with
this properly. (and re-updgrade to 708 anyway)

refs #26159

- - - - -


1 changed file:

- src/input/es_out.c


Changes:

=====================================
src/input/es_out.c
=====================================
@@ -3006,8 +3006,9 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
     if( p_sys->cc_decoder == 708 )
         EsOutCreateCCChannels( out, VLC_CODEC_CEA708, status.cc.desc.i_708_channels,
                                _("DTVCC Closed captions %u"), es );
-    EsOutCreateCCChannels( out, VLC_CODEC_CEA608, status.cc.desc.i_608_channels,
-                           _("Closed captions %u"), es );
+    else
+        EsOutCreateCCChannels( out, VLC_CODEC_CEA608, status.cc.desc.i_608_channels,
+                               _("Closed captions %u"), es );
 
     vlc_mutex_unlock( &p_sys->lock );
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/71d4e203e50b8b44481e2fbc279c5f1443f3e6b5

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/71d4e203e50b8b44481e2fbc279c5f1443f3e6b5
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list