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
dcfaf06f
Commit
dcfaf06f
authored
Apr 02, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* subsdec.c: use es_forma_t.subs.psz_encoding if present.
parent
1ecb5149
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
26 deletions
+31
-26
modules/codec/subsdec.c
modules/codec/subsdec.c
+31
-26
No files found.
modules/codec/subsdec.c
View file @
dcfaf06f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* subsdec.c : text subtitles decoder
* subsdec.c : text subtitles decoder
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id
: subsdec.c,v 1.17 2004/01/25 20:40:59 gbazin Exp
$
* $Id$
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -144,6 +144,15 @@ static int OpenDecoder( vlc_object_t *p_this )
...
@@ -144,6 +144,15 @@ static int OpenDecoder( vlc_object_t *p_this )
p_sys
->
i_align
=
val
.
i_int
;
p_sys
->
i_align
=
val
.
i_int
;
#if defined(HAVE_ICONV)
#if defined(HAVE_ICONV)
if
(
p_dec
->
fmt_in
.
subs
.
psz_encoding
&&
*
p_dec
->
fmt_in
.
subs
.
psz_encoding
)
{
msg_Dbg
(
p_dec
,
"using character encoding: %s"
,
p_dec
->
fmt_in
.
subs
.
psz_encoding
);
p_sys
->
iconv_handle
=
iconv_open
(
"UTF-8"
,
p_dec
->
fmt_in
.
subs
.
psz_encoding
);
}
else
{
var_Create
(
p_dec
,
"subsdec-encoding"
,
var_Create
(
p_dec
,
"subsdec-encoding"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_dec
,
"subsdec-encoding"
,
&
val
);
var_Get
(
p_dec
,
"subsdec-encoding"
,
&
val
);
...
@@ -167,16 +176,12 @@ static int OpenDecoder( vlc_object_t *p_this )
...
@@ -167,16 +176,12 @@ static int OpenDecoder( vlc_object_t *p_this )
}
}
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
}
#else
#else
msg_Dbg
(
p_dec
,
"no iconv support available"
);
msg_Dbg
(
p_dec
,
"no iconv support available"
);
#endif
#endif
#if 0
if( p_demux_data )
msg_Dbg( p_dec, p_demux_data->psz_header );
#endif
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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