[vlc-devel] [PATCH 2/6] input: use a simpler variable to check b_can_pace_control & b_can_rate_control

Steve Lhomme robux4 at videolabs.io
Tue Jun 7 11:15:14 CEST 2016


---
 src/input/input.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 1dd21d7..f1a045e 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2355,13 +2355,14 @@ static input_source_t *InputSourceNew( input_thread_t *p_input,
                        &in->b_can_pace_control ) )
         in->b_can_pace_control = false;
 
-    assert( in->p_demux->pf_demux != NULL || !in->b_can_pace_control );
+    demux_t *p_demux = in->p_demux;
+    assert( p_demux->pf_demux != NULL || !in->b_can_pace_control );
 
-    if( in->p_demux->s != NULL )
+    if( p_demux->s != NULL )
     {
         if( !in->b_can_pace_control )
         {
-            if( demux_Control( in->p_demux, DEMUX_CAN_CONTROL_RATE,
+            if( demux_Control( p_demux, DEMUX_CAN_CONTROL_RATE,
                                 &in->b_can_rate_control, &in->b_rescale_ts ) )
             {
                 in->b_can_rate_control = false;
-- 
2.7.0



More information about the vlc-devel mailing list