Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
3104e5dc
Commit
3104e5dc
authored
Jan 31, 2004
by
Laurent Aimar
Browse files
* es_out: Set Language.
parent
f73d3dd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/es_out.c
View file @
3104e5dc
...
...
@@ -2,7 +2,7 @@
* es_out.c: Es Out handler for input.
*****************************************************************************
* Copyright (C) 2003-2004 VideoLAN
* $Id: es_out.c,v 1.2
3
2004/01/3
0 17:49
:2
1
fenrir Exp $
* $Id: es_out.c,v 1.2
4
2004/01/3
1 20:02
:2
6
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -328,7 +328,6 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
psz_description
,
0
);
es
->
p_es
->
i_stream_id
=
fmt
->
i_id
;
es
->
p_es
->
i_fourcc
=
fmt
->
i_codec
;
free
(
psz_description
);
switch
(
fmt
->
i_cat
)
{
...
...
@@ -436,14 +435,6 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
playlist_AddInfo
(
p_playlist
,
-
1
,
psz_cat
,
_
(
"Channels"
),
"%d"
,
fmt
->
audio
.
i_channels
);
}
if
(
fmt
->
psz_language
)
{
input_AddInfo
(
p_cat
,
_
(
"Language"
),
"%s"
,
fmt
->
psz_language
);
playlist_AddInfo
(
p_playlist
,
-
1
,
psz_cat
,
_
(
"Language"
),
"%s"
,
fmt
->
psz_language
);
}
if
(
fmt
->
audio
.
i_rate
>
0
)
{
input_AddInfo
(
p_cat
,
_
(
"Sample rate"
),
_
(
"%d Hz"
),
...
...
@@ -524,6 +515,12 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
}
if
(
p_playlist
)
vlc_object_release
(
p_playlist
);
}
if
(
*
psz_description
)
{
input_AddInfo
(
p_cat
,
_
(
"Language"
),
psz_description
);
playlist_AddInfo
(
p_playlist
,
-
1
,
psz_cat
,
_
(
"Language"
),
"%s"
,
psz_description
);
}
free
(
psz_description
);
es_format_Copy
(
&
es
->
p_es
->
fmt
,
fmt
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment