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
924a7038
Commit
924a7038
authored
Oct 22, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directory: do not try to open "-" as it refers to stdin
This removes a silly error message.
parent
a2ab6cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
modules/access/directory.c
modules/access/directory.c
+16
-1
No files found.
modules/access/directory.c
View file @
924a7038
...
...
@@ -143,7 +143,22 @@ static int Open( vlc_object_t *p_this )
if
(
!
p_access
->
psz_path
)
return
VLC_EGENERIC
;
DIR
*
handle
=
utf8_opendir
(
p_access
->
psz_path
);
DIR
*
handle
;
if
(
strcmp
(
p_access
->
psz_path
,
"-"
))
handle
=
utf8_opendir
(
p_access
->
psz_path
);
else
{
#if 0 /* This won't work yet, it generates paths like "-/music.ogg".
* We'd need to use openat() here and in the file access... */
int fd = dup (0);
handle = fdopendir (fd);
if (handle == NULL)
close (fd);
#else
return
VLC_EGENERIC
;
#endif
}
if
(
handle
==
NULL
)
return
VLC_EGENERIC
;
...
...
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