File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -684,6 +684,9 @@ static void MainLoop( input_thread_t *p_input, bool b_interactive )
684
684
bool b_pause_after_eof = b_interactive &&
685
685
var_InheritBool ( p_input , "play-and-pause" );
686
686
687
+ demux_t * p_demux = p_input -> p -> master -> p_demux ;
688
+ const bool b_can_demux = p_demux -> pf_demux != NULL ;
689
+
687
690
while ( !input_Stopped ( p_input ) && p_input -> p -> i_state != ERROR_S )
688
691
{
689
692
mtime_t i_wakeup = -1 ;
@@ -703,7 +706,7 @@ static void MainLoop( input_thread_t *p_input, bool b_interactive )
703
706
704
707
MainLoopDemux ( p_input , & b_force_update );
705
708
706
- if ( p_input -> p -> master -> p_demux -> pf_demux != NULL )
709
+ if ( b_can_demux )
707
710
i_wakeup = es_out_GetWakeup ( p_input -> p -> p_es_out );
708
711
if ( b_force_update )
709
712
i_intf_update = 0 ;
You can’t perform that action at this time.
0 commit comments