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
d7a9267c
Commit
d7a9267c
authored
Dec 29, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
livehttp: use vlc_strerror_c()
parent
2d79b42d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
modules/access_output/livehttp.c
modules/access_output/livehttp.c
+10
-5
No files found.
modules/access_output/livehttp.c
View file @
d7a9267c
...
...
@@ -340,7 +340,8 @@ static int CryptSetup( sout_access_out_t *p_access, char *key_file )
int
keyfd
=
vlc_open
(
keyfile
,
O_RDONLY
|
O_NONBLOCK
);
if
(
unlikely
(
keyfd
==
-
1
)
)
{
msg_Err
(
p_access
,
"Unable to open keyfile %s: %m"
,
keyfile
);
msg_Err
(
p_access
,
"Unable to open keyfile %s: %s"
,
keyfile
,
vlc_strerror_c
(
errno
)
);
free
(
keyfile
);
gcry_cipher_close
(
p_sys
->
aes_ctx
);
return
VLC_EGENERIC
;
...
...
@@ -384,7 +385,8 @@ static int LoadCryptFile( sout_access_out_t *p_access )
if
(
unlikely
(
stream
==
NULL
)
)
{
msg_Err
(
p_access
,
"Unable to open keyloadfile %s: %m"
,
p_sys
->
psz_keyfile
);
msg_Err
(
p_access
,
"Unable to open keyloadfile %s: %s"
,
p_sys
->
psz_keyfile
,
vlc_strerror_c
(
errno
)
);
return
VLC_EGENERIC
;
}
...
...
@@ -393,7 +395,8 @@ static int LoadCryptFile( sout_access_out_t *p_access )
ssize_t
len
=
getline
(
&
key_uri
,
&
(
size_t
){
0
},
stream
);
if
(
unlikely
(
len
==
-
1
)
)
{
msg_Err
(
p_access
,
"Cannot read %s: %m"
,
p_sys
->
psz_keyfile
);
msg_Err
(
p_access
,
"Cannot read %s: %s"
,
p_sys
->
psz_keyfile
,
vlc_strerror_c
(
errno
)
);
clearerr
(
stream
);
fclose
(
stream
);
free
(
key_uri
);
...
...
@@ -405,7 +408,8 @@ static int LoadCryptFile( sout_access_out_t *p_access )
len
=
getline
(
&
key_file
,
&
(
size_t
){
0
},
stream
);
if
(
unlikely
(
len
==
-
1
)
)
{
msg_Err
(
p_access
,
"Cannot read %s: %m"
,
p_sys
->
psz_keyfile
);
msg_Err
(
p_access
,
"Cannot read %s: %s"
,
p_sys
->
psz_keyfile
,
vlc_strerror_c
(
errno
)
);
clearerr
(
stream
);
fclose
(
stream
);
...
...
@@ -865,7 +869,8 @@ static ssize_t openNextFile( sout_access_out_t *p_access, sout_access_out_sys_t
O_TRUNC
,
0666
);
if
(
fd
==
-
1
)
{
msg_Err
(
p_access
,
"cannot open `%s' (%m)"
,
segment
->
psz_filename
);
msg_Err
(
p_access
,
"cannot open `%s' (%s)"
,
segment
->
psz_filename
,
vlc_strerror_c
(
errno
)
);
destroySegment
(
segment
);
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