[vlc-commits] stream_extractor: archive: kill archive on reset error

Filip Roséen git at videolan.org
Sun Jul 29 16:29:54 CEST 2018


vlc/vlc-3.0 | branch: master | Filip Roséen <filip at atch.se> | Wed Jul 25 05:34:44 2018 +0200| [aa6dfc98452c56f11e62cf03d76fea2f893099ab] | committer: Jean-Baptiste Kempf

stream_extractor: archive: kill archive on reset error

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 3844aeab7e7a82a659bd3aa90c261bc03f32256b)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/stream_extractor/archive.c b/modules/stream_extractor/archive.c
index 29ecf23123..5f82700256 100644
--- a/modules/stream_extractor/archive.c
+++ b/modules/stream_extractor/archive.c
@@ -393,7 +393,10 @@ static int archive_extractor_reset( stream_extractor_t* p_extractor )
         || archive_clean( p_sys )
         || archive_init( p_sys, p_extractor->source )
         || archive_seek_subentry( p_sys, p_extractor->identifier ) )
+    {
+        p_sys->b_dead = true;
         return VLC_EGENERIC;
+    }
 
     p_sys->i_offset = 0;
     p_sys->b_eof = false;



More information about the vlc-commits mailing list