stream_extractor: archive: add archive_extractor_reset
commit6062e012d835e384cbfe8d1ae6ba2e2f17704815
authorFilip Roséen <filip@atch.se>
Tue, 24 Jul 2018 12:30:47 +0000 (24 14:30 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Jul 2018 13:40:53 +0000 (24 15:40 +0200)
tree2cebd1fd66d419e0694bb8632fb0201aebbfa8fe
parent732058913798092a5c23811d0c03af5dc33fe56b
stream_extractor: archive: add archive_extractor_reset

In order for us to start over, such as a failed attempt of
dumb-seeking, we must reset the state of our extractor as if we just
opened the file.

This helper accomplishes that while also making sure that all
associated variables are back in a proper state.

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