[vlc-commits] modules: use vlc_timer_schedule_asap() instead of more complex calls

Steve Lhomme git at videolan.org
Fri Jul 6 08:07:07 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul  5 14:53:10 2018 +0200| [5ceb2c7e1232562d7a5dd17bf54931a7ffdc4bcb] | committer: Steve Lhomme

modules: use vlc_timer_schedule_asap() instead of more complex calls

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

 modules/access/screen/xcb.c    | 2 +-
 modules/access/shm.c           | 2 +-
 modules/audio_output/waveout.c | 2 +-
 modules/spu/rss.c              | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/access/screen/xcb.c b/modules/access/screen/xcb.c
index 7560b1a530..d2f3babc8e 100644
--- a/modules/access/screen/xcb.c
+++ b/modules/access/screen/xcb.c
@@ -247,7 +247,7 @@ static int Open (vlc_object_t *obj)
     p_sys->es = NULL;
     if (vlc_timer_create (&p_sys->timer, Demux, demux))
         goto error;
-    vlc_timer_schedule (p_sys->timer, false, 1, interval);
+    vlc_timer_schedule_asap (p_sys->timer, interval);
 
     /* Initializes demux */
     demux->pf_demux   = NULL;
diff --git a/modules/access/shm.c b/modules/access/shm.c
index 1663ea65f7..0f415aaf6b 100644
--- a/modules/access/shm.c
+++ b/modules/access/shm.c
@@ -245,7 +245,7 @@ static int Open (vlc_object_t *obj)
     /* Initializes demux */
     if (vlc_timer_create (&sys->timer, Demux, demux))
         goto error;
-    vlc_timer_schedule (sys->timer, false, 1, interval);
+    vlc_timer_schedule_asap (sys->timer, interval);
 
     demux->p_sys = sys;
     demux->pf_demux   = NULL;
diff --git a/modules/audio_output/waveout.c b/modules/audio_output/waveout.c
index 42959ac0b6..62bf37ac3f 100644
--- a/modules/audio_output/waveout.c
+++ b/modules/audio_output/waveout.c
@@ -901,7 +901,7 @@ static void WaveOutPause( audio_output_t * p_aout, bool pause, vlc_tick_t date)
 
     if(pause)
     {
-        vlc_timer_schedule( sys->volume_poll_timer, false, 1, VLC_TICK_FROM_MS(200) );
+        vlc_timer_schedule_asap( sys->volume_poll_timer, VLC_TICK_FROM_MS(200) );
         res = waveOutPause( sys->h_waveout );
         if( res != MMSYSERR_NOERROR )
         {
diff --git a/modules/spu/rss.c b/modules/spu/rss.c
index 6a9f25e485..2b829db489 100644
--- a/modules/spu/rss.c
+++ b/modules/spu/rss.c
@@ -313,7 +313,7 @@ static int CreateFilter( vlc_object_t *p_this )
         vlc_mutex_destroy( &p_sys->lock );
         goto error;
     }
-    vlc_timer_schedule( p_sys->timer, false, 1, vlc_tick_from_sec(i_ttl) );
+    vlc_timer_schedule_asap( p_sys->timer, vlc_tick_from_sec(i_ttl) );
 
     free( psz_urls );
     return VLC_SUCCESS;



More information about the vlc-commits mailing list