[vlc-commits] mux: ts: reword stream selection

Francois Cartegnie git at videolan.org
Wed Oct 26 19:13:18 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 24 16:40:56 2016 +0200| [d3cba6851b7ec5d6271b7eb8557cca81826c7cb4] | committer: Francois Cartegnie

mux: ts: reword stream selection

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

 modules/mux/mpeg/ts.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 5967b1b..90268f4 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -1248,10 +1248,11 @@ static bool MuxStreams(sout_mux_t *p_mux )
 
         if( i == -1 )
             p_input = p_sys->p_pcr_input;
-        else if( p_mux->pp_inputs[i]->p_sys == p_pcr_stream )
-            continue;
-        else
+        else if( p_mux->pp_inputs[i] != p_sys->p_pcr_input )
             p_input = p_mux->pp_inputs[i];
+        else
+            continue;
+
         sout_input_sys_t *p_stream = (sout_input_sys_t*)p_input->p_sys;
 
         if( ( p_stream != p_pcr_stream ||



More information about the vlc-commits mailing list