[vlc-commits] stream_extractor: archive: enable Control/Seek even if libarchive died

Filip Roséen git at videolan.org
Thu Jul 26 00:15:32 CEST 2018


vlc | branch: master | Filip Roséen <filip at atch.se> | Wed Jul 25 21:49:14 2018 +0200| [51824f14fdcbfb813cba667e432cb0df2b639776] | committer: Jean-Baptiste Kempf

stream_extractor: archive: enable Control/Seek even if libarchive died

As we might be able to recover from a libarchive fatal error (by
resetting the handle to an appropriate state), there is no need for us
to disable controls completely.

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

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

 modules/stream_extractor/archive.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/stream_extractor/archive.c b/modules/stream_extractor/archive.c
index 15262d2a72..6c25a63f8b 100644
--- a/modules/stream_extractor/archive.c
+++ b/modules/stream_extractor/archive.c
@@ -493,9 +493,6 @@ static int Control( stream_extractor_t* p_extractor, int i_query, va_list args )
 {
     private_sys_t* p_sys = p_extractor->p_sys;
 
-    if( p_sys->b_dead )
-        return VLC_EGENERIC;
-
     switch( i_query )
     {
         case STREAM_CAN_FASTSEEK:
@@ -628,9 +625,6 @@ static int Seek( stream_extractor_t* p_extractor, uint64_t i_req )
 {
     private_sys_t* p_sys = p_extractor->p_sys;
 
-    if( p_sys->b_dead )
-        return VLC_EGENERIC;
-
     if( !p_sys->p_entry || !p_sys->b_seekable_source )
         return VLC_EGENERIC;
 



More information about the vlc-commits mailing list