Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
bb968216
Commit
bb968216
authored
Nov 19, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify
parent
b2167185
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
modules/codec/subtitles/subsdec.c
modules/codec/subtitles/subsdec.c
+4
-10
No files found.
modules/codec/subtitles/subsdec.c
View file @
bb968216
...
...
@@ -215,18 +215,12 @@ static int OpenDecoder( vlc_object_t *p_this )
if
(
psz_charset
==
NULL
)
{
psz_charset
=
strdup
(
"UTF-8"
);
msg_Dbg
(
p_dec
,
"trying hard-coded character encoding: %s"
,
psz_charset
?
psz_charset
:
"error"
);
msg_Dbg
(
p_dec
,
"using UTF-8 character encoding"
);
}
/* Fifth, fail */
if
(
psz_charset
==
NULL
)
{
free
(
p_sys
);
return
VLC_ENOMEM
;
}
if
(
strcasecmp
(
psz_charset
,
"UTF-8"
)
&&
strcasecmp
(
psz_charset
,
"utf8"
))
if
((
psz_charset
!=
NULL
)
&&
strcasecmp
(
psz_charset
,
"UTF-8"
)
&&
strcasecmp
(
psz_charset
,
"utf8"
))
{
p_sys
->
iconv_handle
=
vlc_iconv_open
(
"UTF-8"
,
psz_charset
);
if
(
p_sys
->
iconv_handle
==
(
vlc_iconv_t
)(
-
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