[vlc-commits] input: fix assertion

Rémi Denis-Courmont git at videolan.org
Thu Jun 16 23:21:01 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jun 17 00:19:25 2016 +0300| [f8acefe5f4401b6addaf7d94eec05336b4eef3c8] | committer: Rémi Denis-Courmont

input: fix assertion

So far, pf_demux is mandatory for unpaced demuxers.

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

 src/input/input.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 6690e7c..50d603e 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2318,10 +2318,7 @@ static input_source_t *InputSourceNew( input_thread_t *p_input,
                        &in->b_can_pace_control ) )
         in->b_can_pace_control = false;
 
-    demux_t *p_demux = in->p_demux;
-    while (p_demux->p_next)
-        p_demux = p_demux->p_next;
-    assert( p_demux->pf_demux != NULL || !in->b_can_pace_control );
+    assert( in->p_demux->pf_demux != NULL || !in->b_can_pace_control );
 
     if( !in->b_can_pace_control )
     {



More information about the vlc-commits mailing list