Commit e6e09d2b authored by Ilkka Ollakka's avatar Ilkka Ollakka

httplive: use CLOCK_FREQ

parent f4254943
...@@ -2089,7 +2089,7 @@ static int Open(vlc_object_t *p_this) ...@@ -2089,7 +2089,7 @@ static int Open(vlc_object_t *p_this)
hls_stream_t *hls = hls_Get(p_sys->hls_stream, current); hls_stream_t *hls = hls_Get(p_sys->hls_stream, current);
p_sys->playlist.last = mdate(); p_sys->playlist.last = mdate();
p_sys->playlist.wakeup = p_sys->playlist.last + 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)) 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) ...@@ -2386,7 +2386,7 @@ static int Read(stream_t *s, void *buffer, unsigned int i_read)
mtime_t start = mdate(); mtime_t start = mdate();
// Wait for 10 seconds // 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); int res = vlc_cond_timedwait(&p_sys->read.wait, &p_sys->read.lock_wait, timeout_limit);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment