]> git.sesse.net Git - vlc/commitdiff
httplive: use CLOCK_FREQ
authorIlkka Ollakka <ileoo@videolan.org>
Thu, 6 Mar 2014 09:05:36 +0000 (11:05 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 6 Mar 2014 12:09:44 +0000 (14:09 +0200)
modules/stream_filter/httplive.c

index c0e6cc3943939565edac7a2c0d21147e736b552d..fa745af1052ff13c1f9dd22a088fffcc441ff904 100644 (file)
@@ -2089,7 +2089,7 @@ static int Open(vlc_object_t *p_this)
         hls_stream_t *hls = hls_Get(p_sys->hls_stream, current);
         p_sys->playlist.last = mdate();
         p_sys->playlist.wakeup = p_sys->playlist.last +
-                ((mtime_t)hls->duration * UINT64_C(1000000));
+                ((mtime_t)hls->duration * CLOCK_FREQ );
 
         if (vlc_clone(&p_sys->reload, hls_Reload, s, VLC_THREAD_PRIORITY_LOW))
         {
@@ -2386,7 +2386,7 @@ static int Read(stream_t *s, void *buffer, unsigned int i_read)
             mtime_t start = mdate();
 
             // Wait for 10 seconds
-            mtime_t timeout_limit = start + (10 * UINT64_C(1000000));
+            mtime_t timeout_limit = start + (10 * CLOCK_FREQ);
 
             int res = vlc_cond_timedwait(&p_sys->read.wait, &p_sys->read.lock_wait, timeout_limit);