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
983ca412
Commit
983ca412
authored
Dec 28, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shm: use vlc_strerror_c()
parent
f94a0891
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/access/shm.c
modules/access/shm.c
+5
-2
No files found.
modules/access/shm.c
View file @
983ca412
...
...
@@ -26,6 +26,7 @@
#include <stdarg.h>
#include <math.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#ifdef HAVE_SYS_SHM_H
...
...
@@ -182,7 +183,8 @@ static int Open (vlc_object_t *obj)
{
sys
->
fd
=
vlc_open
(
path
,
O_RDONLY
);
if
(
sys
->
fd
==
-
1
)
msg_Err
(
demux
,
"cannot open file %s: %m"
,
path
);
msg_Err
(
demux
,
"cannot open file %s: %s"
,
path
,
vlc_strerror_c
(
errno
));
free
(
path
);
if
(
sys
->
fd
==
-
1
)
goto
error
;
...
...
@@ -204,7 +206,8 @@ static int Open (vlc_object_t *obj)
if
(
mem
==
(
const
void
*
)(
-
1
))
{
msg_Err
(
demux
,
"cannot attach segment %d: %m"
,
id
);
msg_Err
(
demux
,
"cannot attach segment %d: %s"
,
id
,
vlc_strerror_c
(
errno
));
goto
error
;
}
sys
->
mem
.
addr
=
mem
;
...
...
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