Commit 176f9514 authored by Jean-Paul Saman's avatar Jean-Paul Saman

stream_filter/httplive.c: signal download thread on successfull index reload (live streams)

Make sure the download thread will continue when an new index file for
this stream has been successfully loaded.
parent 85dcda0f
......@@ -1077,9 +1077,20 @@ static int hls_ReloadPlaylist(stream_t *s)
msg_Info(s, "new HLS stream appended (id=%d, bandwidth=%"PRIu64")",
hls_new->id, hls_new->bandwidth);
}
else if (hls_UpdatePlaylist(s, hls_new, &hls_old) != VLC_SUCCESS)
msg_Info(s, "failed updating HLS stream (id=%d, bandwidth=%"PRIu64")",
hls_new->id, hls_new->bandwidth);
else
{
if ((hls_UpdatePlaylist(s, hls_new, &hls_old) == VLC_SUCCESS) &&
(s->p_sys->download.stream == n))
{
/* wake up download thread */
vlc_mutex_lock(&s->p_sys->download.lock_wait);
vlc_cond_signal(&s->p_sys->download.wait);
vlc_mutex_unlock(&s->p_sys->download.lock_wait);
}
else
msg_Info(s, "failed updating HLS stream (id=%d, bandwidth=%"PRIu64")",
hls_new->id, hls_new->bandwidth);
}
}
vlc_array_destroy(hls_streams);
......
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