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
80bd9600
Commit
80bd9600
authored
May 31, 2010
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zip filter: skip .vlt & .wsz (skins)
parent
8b17a1b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
modules/access/zip/zipstream.c
modules/access/zip/zipstream.c
+12
-0
No files found.
modules/access/zip/zipstream.c
View file @
80bd9600
...
@@ -172,6 +172,18 @@ int StreamOpen( vlc_object_t *p_this )
...
@@ -172,6 +172,18 @@ int StreamOpen( vlc_object_t *p_this )
stream_t
*
s
=
(
stream_t
*
)
p_this
;
stream_t
*
s
=
(
stream_t
*
)
p_this
;
stream_sys_t
*
p_sys
;
stream_sys_t
*
p_sys
;
/* Verify file extension: discard .vlt files (skins) */
char
*
psz_ext
=
strrchr
(
s
->
psz_path
,
'.'
);
if
(
psz_ext
)
{
if
(
!
strncasecmp
(
psz_ext
,
".vlt"
,
4
)
||
!
strncasecmp
(
psz_ext
,
".wsz"
,
4
)
)
{
msg_Dbg
(
s
,
"skipping skins package (*.vlt, *.wsz)"
);
return
VLC_EGENERIC
;
}
}
/* Verify file format */
/* Verify file format */
const
uint8_t
*
p_peek
;
const
uint8_t
*
p_peek
;
if
(
stream_Peek
(
s
->
p_source
,
&
p_peek
,
i_zip_marker
)
<
i_zip_marker
)
if
(
stream_Peek
(
s
->
p_source
,
&
p_peek
,
i_zip_marker
)
<
i_zip_marker
)
...
...
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