[vlc-commits] Zip: fail when the file does not exist
Jean-Philippe André
git at videolan.org
Fri Jan 21 19:10:17 CET 2011
vlc | branch: master | Jean-Philippe André <jpeg at videolan.org> | Fri Jan 21 17:59:08 2011 +0100| [fe6f4ad05c49384dbb7fb5e7de11539c7d21ad2d] | committer: Jean-Philippe André
Zip: fail when the file does not exist
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe6f4ad05c49384dbb7fb5e7de11539c7d21ad2d
---
modules/access/zip/zipaccess.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/access/zip/zipaccess.c b/modules/access/zip/zipaccess.c
index a0c81c2..ad4bc99 100644
--- a/modules/access/zip/zipaccess.c
+++ b/modules/access/zip/zipaccess.c
@@ -152,11 +152,13 @@ int AccessOpen( vlc_object_t *p_this )
if( !file )
{
msg_Err( p_access, "not a valid zip archive: '%s'", psz_pathToZip );
+ i_ret = VLC_EGENERIC;
goto exit;
}
/* Open file in zip */
- OpenFileInZip( p_access );
+ if( ( i_ret = OpenFileInZip( p_access ) ) != VLC_SUCCESS )
+ goto exit;
/* Set callback */
ACCESS_SET_CALLBACKS( AccessRead, NULL, AccessControl, AccessSeek );
More information about the vlc-commits
mailing list