Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a9ac3e9e
Commit
a9ac3e9e
authored
Nov 28, 2006
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uses file:// MRL only files, don't bug when recursively adding directories
parent
8d433f3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/access/directory.c
modules/access/directory.c
+5
-3
No files found.
modules/access/directory.c
View file @
a9ac3e9e
...
...
@@ -393,10 +393,11 @@ static int ReadDir( playlist_t *p_playlist, const char *psz_name,
{
const
char
*
entry
=
pp_dir_content
[
i
];
int
i_size_entry
=
strlen
(
psz_name
)
+
strlen
(
entry
)
+
9
;
/* "file://" + "/" + '\0' */
strlen
(
entry
)
+
2
;
char
psz_uri
[
i_size_entry
];
char
psz_mrl
[
i_size_entry
+
7
];
/* "file://psz_uri" */
sprintf
(
psz_uri
,
"
file://
%s/%s"
,
psz_name
,
entry
);
sprintf
(
psz_uri
,
"%s/%s"
,
psz_name
,
entry
);
/* if it starts with '.' then forget it */
if
(
entry
[
0
]
!=
'.'
)
...
...
@@ -471,8 +472,9 @@ static int ReadDir( playlist_t *p_playlist, const char *psz_name,
}
}
sprintf
(
&
psz_mrl
,
"file://%s"
,
psz_uri
);
p_input
=
input_ItemNewWithType
(
VLC_OBJECT
(
p_playlist
),
psz_
uri
,
entry
,
0
,
NULL
,
psz_
mrl
,
entry
,
0
,
NULL
,
-
1
,
ITEM_TYPE_VFILE
);
if
(
p_input
!=
NULL
)
{
...
...
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