static void* hls_Thread(vlc_object_t *p_this)
{
- hls_thread_t *client = (hls_thread_t *) p_this;
- stream_t *s = client->s;
+ stream_t *s = ((hls_thread_t*)p_this)->s;
stream_sys_t *p_sys = s->p_sys;
int canc = vlc_savecancel();
mtime_t now = mdate();
if (now >= p_sys->playlist.wakeup)
{
- if (hls_ReloadPlaylist(client->s) != VLC_SUCCESS)
+ if (hls_ReloadPlaylist(s) != VLC_SUCCESS)
{
/* No change in playlist, then backoff */
p_sys->playlist.tries++;
assert(segment);
vlc_mutex_unlock(&hls->lock);
- if (Download(client->s, hls, segment, &p_sys->download.current) != VLC_SUCCESS)
+ if (Download(s, hls, segment, &p_sys->download.current) != VLC_SUCCESS)
{
if (!vlc_object_alive(p_this)) break;