[vlc-commits] demux: ts: correctly update current chain when dequeuing

Francois Cartegnie git at videolan.org
Mon Mar 23 16:59:31 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Mar 22 23:47:12 2015 +0100| [e66efa734800f12ac692a6b65c14b40283287268] | committer: Francois Cartegnie

demux: ts: correctly update current chain when dequeuing

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

 modules/demux/ts.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index c6ac461..ca3a4af 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2354,6 +2354,8 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid, block_t *p_pes )
                 {
                     block_ChainAppend( &pid->u.p_pes->p_prepcr_outqueue, p_block );
                     p_block = pid->u.p_pes->p_prepcr_outqueue;
+                    p_next = p_block->p_next;
+                    p_block->p_next = NULL;
                     pid->u.p_pes->p_prepcr_outqueue = NULL;
                 }
 



More information about the vlc-commits mailing list