[vlc-commits] es_out: turn the hardcoded wakeup delay into a CLOCK_FREQ based value

Steve Lhomme git at videolan.org
Sat May 5 18:10:24 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May  5 09:55:33 2018 +0200| [d1ee04840b64e7ae8451a14898c22d1e7c625e03] | committer: Rémi Denis-Courmont

es_out: turn the hardcoded wakeup delay into a CLOCK_FREQ based value

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 src/input/es_out.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 0a5ffed3d8..88168538a3 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -709,7 +709,7 @@ static void EsOutDecodersStopBuffering( es_out_t *out, bool b_forced )
     input_resource_TerminateVout( input_priv(p_sys->p_input)->p_resource );
 
     /* */
-    const mtime_t i_wakeup_delay = 10*1000; /* FIXME CLEANUP thread wake up time*/
+    const mtime_t i_wakeup_delay = CLOCK_FREQ/100; /* FIXME CLEANUP thread wake up time*/
     const mtime_t i_current_date = p_sys->b_paused ? p_sys->i_pause_date : mdate();
 
     input_clock_ChangeSystemOrigin( p_sys->p_pgrm->p_input_clock, true,



More information about the vlc-commits mailing list