Browse Source

stream_extractor: archive: fail STREAM_GET_SIZE if size is unavailable

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 04e6b7a226)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
pull/135/head
Filip Roséen 8 years ago
committed by Jean-Baptiste Kempf
parent
commit
c81e551b54
  1. 3
      modules/stream_extractor/archive.c

3
modules/stream_extractor/archive.c

@ -505,6 +505,9 @@ static int Control( stream_extractor_t* p_extractor, int i_query, va_list args )
if( p_sys->p_entry == NULL )
return VLC_EGENERIC;
if( !archive_entry_size_is_set( p_sys->p_entry ) )
return VLC_EGENERIC;
*va_arg( args, uint64_t* ) = archive_entry_size( p_sys->p_entry );
break;

Loading…
Cancel
Save