[vlc-commits] se/archive: set b_dead = true on Close

Filip Roséen git at videolan.org
Fri Mar 17 19:05:41 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Fri Mar 17 03:22:11 2017 +0100| [65c9f5e8d3e7ca46af2ed9d7c197e9d7e529b552] | committer: Jean-Baptiste Kempf

se/archive: set b_dead = true on Close

There are paths that can be skipped if we are closing down the module,
and some should even be explicitly avoided.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/stream_extractor/archive.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/stream_extractor/archive.c b/modules/stream_extractor/archive.c
index 3b7a0cf..bc401ce 100644
--- a/modules/stream_extractor/archive.c
+++ b/modules/stream_extractor/archive.c
@@ -632,6 +632,7 @@ static int Seek( stream_extractor_t* p_extractor, uint64_t i_req )
 
 static void CommonClose( private_sys_t* p_sys )
 {
+    p_sys->b_dead = true;
     archive_clean( p_sys );
 
     for( size_t i = 0; i < p_sys->i_callback_data; ++i )



More information about the vlc-commits mailing list