Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
cbec0abc
Commit
cbec0abc
authored
Sep 01, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zip: remove tautology
parent
a19dc6ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
modules/access/zip/zipaccess.c
modules/access/zip/zipaccess.c
+8
-12
No files found.
modules/access/zip/zipaccess.c
View file @
cbec0abc
...
@@ -201,18 +201,16 @@ void AccessClose( vlc_object_t *p_this )
...
@@ -201,18 +201,16 @@ void AccessClose( vlc_object_t *p_this )
{
{
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
if
(
p_sys
)
unzFile
file
=
p_sys
->
zipFile
;
if
(
file
)
{
{
unzFile
file
=
p_sys
->
zipFile
;
unzCloseCurrentFile
(
file
);
if
(
file
)
unzClose
(
file
);
{
unzCloseCurrentFile
(
file
);
unzClose
(
file
);
}
free
(
p_sys
->
psz_fileInzip
);
free
(
p_sys
->
fileFunctions
);
free
(
p_sys
);
}
}
free
(
p_sys
->
psz_fileInzip
);
free
(
p_sys
->
fileFunctions
);
free
(
p_sys
);
}
}
/** **************************************************************************
/** **************************************************************************
...
@@ -270,7 +268,6 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
...
@@ -270,7 +268,6 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
static
ssize_t
AccessRead
(
access_t
*
p_access
,
uint8_t
*
p_buffer
,
size_t
sz
)
static
ssize_t
AccessRead
(
access_t
*
p_access
,
uint8_t
*
p_buffer
,
size_t
sz
)
{
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
assert
(
p_sys
);
unzFile
file
=
p_sys
->
zipFile
;
unzFile
file
=
p_sys
->
zipFile
;
if
(
!
file
)
if
(
!
file
)
{
{
...
@@ -291,7 +288,6 @@ static ssize_t AccessRead( access_t *p_access, uint8_t *p_buffer, size_t sz )
...
@@ -291,7 +288,6 @@ static ssize_t AccessRead( access_t *p_access, uint8_t *p_buffer, size_t sz )
static
int
AccessSeek
(
access_t
*
p_access
,
uint64_t
seek_len
)
static
int
AccessSeek
(
access_t
*
p_access
,
uint64_t
seek_len
)
{
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
assert
(
p_sys
);
unzFile
file
=
p_sys
->
zipFile
;
unzFile
file
=
p_sys
->
zipFile
;
if
(
!
file
)
if
(
!
file
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment