Commit 1c4dc71b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

prefetch: kill access/background thread when closing

parent 5b284975
...@@ -564,6 +564,7 @@ static void Close (vlc_object_t *obj) ...@@ -564,6 +564,7 @@ static void Close (vlc_object_t *obj)
stream_sys_t *sys = stream->p_sys; stream_sys_t *sys = stream->p_sys;
vlc_cancel(sys->thread); vlc_cancel(sys->thread);
vlc_interrupt_kill(sys->interrupt);
vlc_join(sys->thread, NULL); vlc_join(sys->thread, NULL);
vlc_interrupt_destroy(sys->interrupt); vlc_interrupt_destroy(sys->interrupt);
vlc_cond_destroy(&sys->wait_space); vlc_cond_destroy(&sys->wait_space);
......
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