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
f94a0891
Commit
f94a0891
authored
Dec 28, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
samba: use vlc_strerror_c()
parent
8d8b50a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/access/smb.c
modules/access/smb.c
+5
-5
No files found.
modules/access/smb.c
View file @
f94a0891
...
...
@@ -219,8 +219,8 @@ static int Open( vlc_object_t *p_this )
#endif
if
(
(
i_smb
=
smbc_open
(
psz_uri
,
O_RDONLY
,
0
))
<
0
)
{
msg_Err
(
p_access
,
"open failed for '%s' (%
m
)"
,
p_access
->
psz_location
);
msg_Err
(
p_access
,
"open failed for '%s' (%
s
)"
,
p_access
->
psz_location
,
vlc_strerror_c
(
errno
)
);
free
(
psz_uri
);
return
VLC_EGENERIC
;
}
...
...
@@ -232,7 +232,7 @@ static int Open( vlc_object_t *p_this )
if
(
i_ret
)
{
errno
=
i_ret
;
msg_Err
(
p_access
,
"stat failed (%
m)"
);
msg_Err
(
p_access
,
"stat failed (%
s)"
,
vlc_strerror_c
(
errno
)
);
}
else
p_sys
->
size
=
filestat
.
st_size
;
...
...
@@ -272,7 +272,7 @@ static int Seek( access_t *p_access, uint64_t i_pos )
i_ret
=
smbc_lseek
(
p_sys
->
i_smb
,
i_pos
,
SEEK_SET
);
if
(
i_ret
==
-
1
)
{
msg_Err
(
p_access
,
"seek failed (%
m)"
);
msg_Err
(
p_access
,
"seek failed (%
s)"
,
vlc_strerror_c
(
errno
)
);
return
VLC_EGENERIC
;
}
...
...
@@ -295,7 +295,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
i_read
=
smbc_read
(
p_sys
->
i_smb
,
p_buffer
,
i_len
);
if
(
i_read
<
0
)
{
msg_Err
(
p_access
,
"read failed (%
m)"
);
msg_Err
(
p_access
,
"read failed (%
s)"
,
vlc_strerror_c
(
errno
)
);
return
-
1
;
}
...
...
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