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
6d9b3383
Commit
6d9b3383
authored
May 19, 2009
by
Jean-Philippe Andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zip: use !/ as separator instead of |
As advised on the forum, !/ is the standard separator for JAR protocol.
parent
2c113555
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
modules/access/zip/zip.h
modules/access/zip/zip.h
+2
-2
modules/access/zip/zipaccess.c
modules/access/zip/zipaccess.c
+7
-4
No files found.
modules/access/zip/zip.h
View file @
6d9b3383
...
@@ -42,8 +42,8 @@
...
@@ -42,8 +42,8 @@
#define ZIP_FILENAME_LEN 512
#define ZIP_FILENAME_LEN 512
#define ZIP_BUFFER_LEN 32768
#define ZIP_BUFFER_LEN 32768
#define ZIP_SEP "
|
"
#define ZIP_SEP "
!/
"
#define ZIP_SEP_
CHAR '|'
#define ZIP_SEP_
LEN 2
/** **************************************************************************
/** **************************************************************************
...
...
modules/access/zip/zipaccess.c
View file @
6d9b3383
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
*****************************************************************************/
*****************************************************************************/
/** @todo:
/** @todo:
* - implement crypto (using url zip://user:password@path-to-archive
|file
* - implement crypto (using url zip://user:password@path-to-archive
!/file)
* - read files in zip with long name (use unz_file_info.size_filename)
* - read files in zip with long name (use unz_file_info.size_filename)
* - multi-volume archive support ?
* - multi-volume archive support ?
*/
*/
...
@@ -112,9 +112,12 @@ int AccessOpen( vlc_object_t *p_this )
...
@@ -112,9 +112,12 @@ int AccessOpen( vlc_object_t *p_this )
/* Split the MRL */
/* Split the MRL */
psz_path
=
strdup
(
p_access
->
psz_path
);
psz_path
=
strdup
(
p_access
->
psz_path
);
psz_sep
=
str
chr
(
psz_path
,
ZIP_SEP_CHAR
);
psz_sep
=
str
str
(
psz_path
,
ZIP_SEP
);
if
(
!
psz_sep
)
if
(
!
psz_sep
)
{
msg_Dbg
(
p_access
,
"path does not contain separator "
ZIP_SEP
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
*
psz_sep
=
'\0'
;
*
psz_sep
=
'\0'
;
psz_pathToZip
=
unescapeXml
(
psz_path
);
psz_pathToZip
=
unescapeXml
(
psz_path
);
...
@@ -125,10 +128,10 @@ int AccessOpen( vlc_object_t *p_this )
...
@@ -125,10 +128,10 @@ int AccessOpen( vlc_object_t *p_this )
psz_path
);
psz_path
);
psz_pathToZip
=
strdup
(
psz_path
);
psz_pathToZip
=
strdup
(
psz_path
);
}
}
p_sys
->
psz_fileInzip
=
unescapeXml
(
psz_sep
+
1
);
p_sys
->
psz_fileInzip
=
unescapeXml
(
psz_sep
+
ZIP_SEP_LEN
);
if
(
!
p_sys
->
psz_fileInzip
)
if
(
!
p_sys
->
psz_fileInzip
)
{
{
p_sys
->
psz_fileInzip
=
strdup
(
psz_sep
+
1
);
p_sys
->
psz_fileInzip
=
strdup
(
psz_sep
+
ZIP_SEP_LEN
);
}
}
/* Define IO functions */
/* Define IO functions */
...
...
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