[vlc-commits] input: use a simpler variable to check b_can_pace_control & b_can_rate_control
Steve Lhomme
git at videolan.org
Tue Jun 7 11:32:38 CEST 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Jun 7 11:15:14 2016 +0200| [362d2eee23db90c29cb63a44d5841eae3da271d5] | committer: Jean-Baptiste Kempf
input: use a simpler variable to check b_can_pace_control & b_can_rate_control
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=362d2eee23db90c29cb63a44d5841eae3da271d5
---
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;
More information about the vlc-commits
mailing list