[vlc-commits] se/archive: issue diagnostic on reset failure
Filip Roséen
git at videolan.org
Fri Mar 17 19:09:48 CET 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Fri Mar 17 11:25:18 2017 +0100| [4b325ac0f4a846d5beaaf80f4f8c2802df0ca516] | committer: Jean-Baptiste Kempf
se/archive: issue diagnostic on reset failure
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b325ac0f4a846d5beaaf80f4f8c2802df0ca516
---
modules/stream_extractor/archive.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules/stream_extractor/archive.c b/modules/stream_extractor/archive.c
index 88af35a..7a4e5e1 100644
--- a/modules/stream_extractor/archive.c
+++ b/modules/stream_extractor/archive.c
@@ -604,11 +604,12 @@ static int Seek( stream_extractor_t* p_extractor, uint64_t i_req )
if( archive_clean( p_sys ) )
return VLC_EGENERIC;
- if( archive_init( p_sys, p_extractor->source ) )
- return VLC_EGENERIC;
-
- if( archive_seek_subentry( p_sys, p_extractor->identifier ) )
+ if( archive_init( p_sys, p_extractor->source ) ||
+ archive_seek_subentry( p_sys, p_extractor->identifier ) )
+ {
+ msg_Err( p_extractor, "unable to recreate libarchive handle" );
return VLC_EGENERIC;
+ }
i_skip = i_req;
i_offset = 0;
More information about the vlc-commits
mailing list