Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
51b87d9b
Commit
51b87d9b
authored
Oct 29, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor simplification
parent
5ecdf631
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/access/file.c
modules/access/file.c
+6
-5
No files found.
modules/access/file.c
View file @
51b87d9b
...
...
@@ -149,7 +149,6 @@ static int Open( vlc_object_t *p_this )
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
;
char
*
psz_name
=
strdup
(
p_access
->
psz_path
);
char
*
psz
;
#ifdef HAVE_SYS_STAT_H
struct
stat
stat_info
;
...
...
@@ -161,6 +160,8 @@ static int Open( vlc_object_t *p_this )
{
if
(
psz_name
[
0
]
==
'~'
&&
psz_name
[
1
]
==
'/'
)
{
char
*
psz
;
/* This is incomplete : we should also support the ~cmassiot/
* syntax. */
asprintf
(
&
psz
,
"%s/%s"
,
p_access
->
p_libvlc
->
psz_homedir
,
psz_name
+
2
);
...
...
@@ -286,10 +287,10 @@ static int Open( vlc_object_t *p_this )
p_file
->
psz_name
=
psz_name
;
TAB_APPEND
(
p_sys
->
i_file
,
p_sys
->
file
,
p_file
);
psz
=
var_CreateGetString
(
p_access
,
"file-cat"
);
if
(
*
psz
)
psz
_name
=
var_CreateGetString
(
p_access
,
"file-cat"
);
if
(
*
psz
_name
)
{
char
*
psz_parser
=
psz_name
=
psz
;
char
*
psz_parser
=
psz_name
;
int64_t
i_size
;
while
(
psz_name
&&
*
psz_name
)
...
...
@@ -325,7 +326,7 @@ static int Open( vlc_object_t *p_this )
if
(
psz_name
)
psz_name
++
;
}
}
free
(
psz
);
free
(
psz
_name
);
return
VLC_SUCCESS
;
}
...
...
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