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
53b501a1
Commit
53b501a1
authored
Dec 29, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iconv: use vlc_strerror_c()
parent
8f528e6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
modules/codec/subsdec.c
modules/codec/subsdec.c
+3
-1
modules/text_renderer/text_renderer.c
modules/text_renderer/text_renderer.c
+3
-1
No files found.
modules/codec/subsdec.c
View file @
53b501a1
...
...
@@ -32,6 +32,7 @@
#endif
#include <limits.h>
#include <errno.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
...
...
@@ -308,7 +309,8 @@ static int OpenDecoder( vlc_object_t *p_this )
{
p_sys
->
iconv_handle
=
vlc_iconv_open
(
"UTF-8"
,
encoding
);
if
(
p_sys
->
iconv_handle
==
(
vlc_iconv_t
)(
-
1
))
msg_Err
(
p_dec
,
"cannot convert from %s: %m"
,
encoding
);
msg_Err
(
p_dec
,
"cannot convert from %s: %s"
,
encoding
,
vlc_strerror_c
(
errno
));
}
free
(
var
);
...
...
modules/text_renderer/text_renderer.c
View file @
53b501a1
...
...
@@ -29,6 +29,7 @@
# include "config.h"
#endif
#include <errno.h>
#include <vlc_common.h>
#include <vlc_variables.h>
#include <vlc_filter.h>
/* filter_sys_t */
...
...
@@ -468,7 +469,8 @@ unsigned SetupText( filter_t *p_filter,
}
else
{
msg_Warn
(
p_filter
,
"failed to convert string to unicode (%m)"
);
msg_Warn
(
p_filter
,
"failed to convert string to unicode (%s)"
,
vlc_strerror_c
(
errno
)
);
i_string_length
=
0
;
}
...
...
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