[vlc-commits] prefetch: kill access/background thread when closing

Rémi Denis-Courmont git at videolan.org
Sat Aug 29 20:08:28 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 29 21:08:04 2015 +0300| [1c4dc71b92fcb0c37d12192e6ce491b2ce498711] | committer: Rémi Denis-Courmont

prefetch: kill access/background thread when closing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1c4dc71b92fcb0c37d12192e6ce491b2ce498711
---

 modules/stream_filter/prefetch.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/stream_filter/prefetch.c b/modules/stream_filter/prefetch.c
index 8a17edc..71a350f 100644
--- a/modules/stream_filter/prefetch.c
+++ b/modules/stream_filter/prefetch.c
@@ -564,6 +564,7 @@ static void Close (vlc_object_t *obj)
     stream_sys_t *sys = stream->p_sys;
 
     vlc_cancel(sys->thread);
+    vlc_interrupt_kill(sys->interrupt);
     vlc_join(sys->thread, NULL);
     vlc_interrupt_destroy(sys->interrupt);
     vlc_cond_destroy(&sys->wait_space);



More information about the vlc-commits mailing list