[vlc-commits] stream_extractor: archive: remove redundant variable
Filip Roséen
git at videolan.org
Tue Jul 24 15:37:45 CEST 2018
vlc | branch: master | Filip Roséen <filip at atch.se> | Tue Jul 24 14:56:20 2018 +0200| [7ba2bcfb061c0390940de2bad6b42749669a956a] | committer: Jean-Baptiste Kempf
stream_extractor: archive: remove redundant variable
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ba2bcfb061c0390940de2bad6b42749669a956a
---
modules/stream_extractor/archive.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/stream_extractor/archive.c b/modules/stream_extractor/archive.c
index a589a53f5f..55c890c616 100644
--- a/modules/stream_extractor/archive.c
+++ b/modules/stream_extractor/archive.c
@@ -628,12 +628,11 @@ static int Seek( stream_extractor_t* p_extractor, uint64_t i_req )
" '%s' (falling back to dumb seek)",
archive_error_string( p_sys->p_archive ) );
- uint64_t i_offset = p_sys->i_offset;
- uint64_t i_skip = i_req - i_offset;
+ uint64_t i_skip = i_req - p_sys->i_offset;
/* RECREATE LIBARCHIVE HANDLE IF WE ARE SEEKING BACKWARDS */
- if( i_req < i_offset )
+ if( i_req < p_sys->i_offset )
{
if( archive_extractor_reset( p_extractor ) )
{
@@ -642,7 +641,6 @@ static int Seek( stream_extractor_t* p_extractor, uint64_t i_req )
}
i_skip = i_req;
- i_offset = 0;
}
if( archive_skip_decompressed( p_extractor, i_skip ) )
More information about the vlc-commits
mailing list