[vlc-commits] input: use sout_instance_ControlsPace()

Rémi Denis-Courmont git at videolan.org
Sun Oct 11 12:32:52 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 10 12:57:49 2020 +0300| [413e08ae468d79386d592fcc415d31d254fb3d15] | committer: Rémi Denis-Courmont

input: use sout_instance_ControlsPace()

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

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

diff --git a/src/input/input.c b/src/input/input.c
index f8b52d8b9c..4be4d304f6 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -42,9 +42,9 @@
 #include "item.h"
 #include "resource.h"
 #include "stream.h"
+#include "stream_output/stream_output.h"
 
 #include <vlc_aout.h>
-#include <vlc_sout.h>
 #include <vlc_dialog.h>
 #include <vlc_url.h>
 #include <vlc_charset.h>
@@ -1313,8 +1313,7 @@ static int Init( input_thread_t * p_input )
 
     if( !priv->b_preparsing && priv->p_sout )
     {
-        priv->b_out_pace_control = priv->p_sout->i_out_pace_nocontrol > 0;
-
+        priv->b_out_pace_control = !sout_instance_ControlsPace(priv->p_sout);
         msg_Dbg( p_input, "starting in %ssync mode",
                  priv->b_out_pace_control ? "a" : "" );
     }



More information about the vlc-commits mailing list