vlc | branch: master | Filip Roséen <[email protected]> | Fri Mar 17 03:22:13 2017 +0100| [1d1d8f15a671b53bd0f4a2dcdbd519981501dfc4] | committer: Jean-Baptiste Kempf
se/archive: add missing error-check in jump-callback If we are unable to exit the current source-stream (be that for whatever reason), we should not ignore the error as it /may/ have fatal consequences down the road. Better safe than sorry. Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1d1d8f15a671b53bd0f4a2dcdbd519981501dfc4 --- modules/stream_extractor/archive.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/stream_extractor/archive.c b/modules/stream_extractor/archive.c index a35d9ed..086f137 100644 --- a/modules/stream_extractor/archive.c +++ b/modules/stream_extractor/archive.c @@ -118,7 +118,8 @@ static int libarchive_jump_cb( libarchive_t* p_arc, void* p_obj_current, libarchive_callback_t* p_current = (libarchive_callback_t*)p_obj_current; libarchive_callback_t* p_next = (libarchive_callback_t*)p_obj_next; - libarchive_exit_cb( p_arc, p_current ); + if( libarchive_exit_cb( p_arc, p_current ) ) + return ARCHIVE_FATAL; if( p_next->p_source == NULL ) p_next->p_source = vlc_stream_NewURL( p_next->p_sys->p_obj, _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
