[vlc-commits] demux: ts: don't send blocks from tables if no es

Francois Cartegnie git at videolan.org
Tue Mar 31 21:22:40 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Mar 29 01:06:33 2015 +0100| [cd081123bc92a310f52fc9d82b31ce7edab86811] | committer: Francois Cartegnie

demux: ts: don't send blocks from tables if no es

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

 modules/demux/ts.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 06f42ce..c156b2f 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2425,7 +2425,10 @@ static void ParseTableSection( demux_t *p_demux, ts_pid_t *pid, block_t *p_data
         PCRFixHandle( p_demux, p_pmt, p_content );
     }
 
-    es_out_Send( p_demux->out, pid->u.p_pes->es.id, p_content );
+    if( pid->u.p_pes->es.id )
+        es_out_Send( p_demux->out, pid->u.p_pes->es.id, p_content );
+    else
+        block_Release( p_content );
 }
 
 static void ParseData( demux_t *p_demux, ts_pid_t *pid )



More information about the vlc-commits mailing list