[vlc-devel] [PATCH 1/5] se/archive: set b_dead = true on Close

Filip Roséen filip at atch.se
Fri Mar 17 03:22:11 CET 2017


There are paths that can be skipped if we are closing down the module,
and some should even be explicitly avoided.
---
 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 3b7a0cf02b..bc401ce3d8 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 )
-- 
2.12.0


More information about the vlc-devel mailing list