Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
f94a0891
Commit
f94a0891
authored
11 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
samba: use vlc_strerror_c()
parent
8d8b50a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/access/smb.c
+5
-5
5 additions, 5 deletions
modules/access/smb.c
with
5 additions
and
5 deletions
modules/access/smb.c
+
5
−
5
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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment