[vlc-commits] demux: ts: set global es count on IOD ES creation

Francois Cartegnie git at videolan.org
Mon Aug 19 15:36:05 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug 19 14:59:46 2019 +0200| [36aa45ab8cd5f56ff751319dd23de0c7865a8423] | committer: Francois Cartegnie

demux: ts: set global es count on IOD ES creation

MPEG SL could not longer start

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

 modules/demux/mpeg/ts_sl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/demux/mpeg/ts_sl.c b/modules/demux/mpeg/ts_sl.c
index 60354c234f..76497e43c8 100644
--- a/modules/demux/mpeg/ts_sl.c
+++ b/modules/demux/mpeg/ts_sl.c
@@ -177,9 +177,14 @@ void SLPackets_Section_Handler( demux_t *p_demux,
                     p_es->fmt = fmt;
 
                     if( p_es->id )
+                    {
                         es_out_Del( p_demux->out, p_es->id );
+                        p_sys->i_pmt_es--;
+                    }
                     p_es->fmt.b_packetized = true; /* Split by access unit, no sync code */
                     p_es->id = es_out_Add( p_demux->out, &p_es->fmt );
+                    if( p_es->id )
+                        p_sys->i_pmt_es++;
                     b_changed = true;
                 }
                 else



More information about the vlc-commits mailing list