stream_extractor: archive: simplify seeking
commit3ecbbfac7d35b52599d295ac7f71c001e03f57b2
authorFilip Roséen <filip@atch.se>
Wed, 25 Jul 2018 02:33:24 +0000 (25 04:33 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 25 Jul 2018 22:11:50 +0000 (26 00:11 +0200)
treea67c5f4c48dd245cc66f86a037d9a309ad98e61a
parent3844aeab7e7a82a659bd3aa90c261bc03f32256b
stream_extractor: archive: simplify seeking

As a seek should be successful even if the requested position is
outside the bounds of the input, there is no need for us to reset the
state of the libarchive reader immediately after seeking fails,
instead we rely on the fact that future reads will return EOF, and
that the reader will have to seek to a proper position in order to
continue reading (causing a libarchive reset).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/stream_extractor/archive.c