Skip to content

Commit

Permalink
stream_extractor: archive: enable Control/Seek even if libarchive died
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
filiproseen-refp authored and jbkempf committed Jul 25, 2018
1 parent 3ecbbfa commit 51824f1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/stream_extractor/archive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 51824f1

Please sign in to comment.