Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
8b0c5ca4
Commit
8b0c5ca4
authored
Mar 09, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed var_Get/Set in es_out.c
parent
bc605af3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
22 deletions
+14
-22
src/input/es_out.c
src/input/es_out.c
+14
-22
No files found.
src/input/es_out.c
View file @
8b0c5ca4
...
@@ -219,9 +219,6 @@ static inline bool EsFmtIsTeletext( const es_format_t *p_fmt )
...
@@ -219,9 +219,6 @@ static inline bool EsFmtIsTeletext( const es_format_t *p_fmt )
*****************************************************************************/
*****************************************************************************/
es_out_t
*
input_EsOutNew
(
input_thread_t
*
p_input
,
int
i_rate
)
es_out_t
*
input_EsOutNew
(
input_thread_t
*
p_input
,
int
i_rate
)
{
{
vlc_value_t
val
;
int
i
;
es_out_t
*
out
=
malloc
(
sizeof
(
*
out
)
);
es_out_t
*
out
=
malloc
(
sizeof
(
*
out
)
);
if
(
!
out
)
if
(
!
out
)
return
NULL
;
return
NULL
;
...
@@ -261,35 +258,35 @@ es_out_t *input_EsOutNew( input_thread_t *p_input, int i_rate )
...
@@ -261,35 +258,35 @@ es_out_t *input_EsOutNew( input_thread_t *p_input, int i_rate )
p_sys
->
i_sub
=
0
;
p_sys
->
i_sub
=
0
;
/* */
/* */
var_Get
(
p_input
,
"audio-track"
,
&
val
);
p_sys
->
i_audio_last
=
var_GetInteger
(
p_input
,
"audio-track"
);
p_sys
->
i_audio_last
=
val
.
i_int
;
var_Get
(
p_input
,
"sub-track"
,
&
val
);
p_sys
->
i_sub_last
=
var_GetInteger
(
p_input
,
"sub-track"
);
p_sys
->
i_sub_last
=
val
.
i_int
;
p_sys
->
i_default_sub_id
=
-
1
;
p_sys
->
i_default_sub_id
=
-
1
;
if
(
!
p_input
->
b_preparsing
)
if
(
!
p_input
->
b_preparsing
)
{
{
var_Get
(
p_input
,
"audio-language"
,
&
val
);
char
*
psz_string
;
p_sys
->
ppsz_audio_language
=
LanguageSplit
(
val
.
psz_string
);
psz_string
=
var_GetString
(
p_input
,
"audio-language"
);
p_sys
->
ppsz_audio_language
=
LanguageSplit
(
psz_string
);
if
(
p_sys
->
ppsz_audio_language
)
if
(
p_sys
->
ppsz_audio_language
)
{
{
for
(
i
=
0
;
p_sys
->
ppsz_audio_language
[
i
];
i
++
)
for
(
i
nt
i
=
0
;
p_sys
->
ppsz_audio_language
[
i
];
i
++
)
msg_Dbg
(
p_input
,
"selected audio language[%d] %s"
,
msg_Dbg
(
p_input
,
"selected audio language[%d] %s"
,
i
,
p_sys
->
ppsz_audio_language
[
i
]
);
i
,
p_sys
->
ppsz_audio_language
[
i
]
);
}
}
free
(
val
.
psz_string
);
free
(
psz_string
);
var_Get
(
p_input
,
"sub-language"
,
&
val
);
psz_string
=
var_GetString
(
p_input
,
"sub-language"
);
p_sys
->
ppsz_sub_language
=
LanguageSplit
(
val
.
psz_string
);
p_sys
->
ppsz_sub_language
=
LanguageSplit
(
psz_string
);
if
(
p_sys
->
ppsz_sub_language
)
if
(
p_sys
->
ppsz_sub_language
)
{
{
for
(
i
=
0
;
p_sys
->
ppsz_sub_language
[
i
];
i
++
)
for
(
i
nt
i
=
0
;
p_sys
->
ppsz_sub_language
[
i
];
i
++
)
msg_Dbg
(
p_input
,
"selected subtitle language[%d] %s"
,
msg_Dbg
(
p_input
,
"selected subtitle language[%d] %s"
,
i
,
p_sys
->
ppsz_sub_language
[
i
]
);
i
,
p_sys
->
ppsz_sub_language
[
i
]
);
}
}
free
(
val
.
psz_string
);
free
(
psz_string
);
}
}
else
else
{
{
...
@@ -297,11 +294,9 @@ es_out_t *input_EsOutNew( input_thread_t *p_input, int i_rate )
...
@@ -297,11 +294,9 @@ es_out_t *input_EsOutNew( input_thread_t *p_input, int i_rate )
p_sys
->
ppsz_audio_language
=
NULL
;
p_sys
->
ppsz_audio_language
=
NULL
;
}
}
var_Get
(
p_input
,
"audio-track-id"
,
&
val
);
p_sys
->
i_audio_id
=
var_GetInteger
(
p_input
,
"audio-track-id"
);
p_sys
->
i_audio_id
=
val
.
i_int
;
var_Get
(
p_input
,
"sub-track-id"
,
&
val
);
p_sys
->
i_sub_id
=
var_GetInteger
(
p_input
,
"sub-track-id"
);
p_sys
->
i_sub_id
=
val
.
i_int
;
p_sys
->
p_es_audio
=
NULL
;
p_sys
->
p_es_audio
=
NULL
;
p_sys
->
p_es_video
=
NULL
;
p_sys
->
p_es_video
=
NULL
;
...
@@ -1560,7 +1555,6 @@ static void EsSelect( es_out_t *out, es_out_id_t *es )
...
@@ -1560,7 +1555,6 @@ static void EsSelect( es_out_t *out, es_out_id_t *es )
{
{
es_out_sys_t
*
p_sys
=
out
->
p_sys
;
es_out_sys_t
*
p_sys
=
out
->
p_sys
;
input_thread_t
*
p_input
=
p_sys
->
p_input
;
input_thread_t
*
p_input
=
p_sys
->
p_input
;
vlc_value_t
val
;
if
(
EsIsSelected
(
es
)
)
if
(
EsIsSelected
(
es
)
)
{
{
...
@@ -1591,7 +1585,6 @@ static void EsSelect( es_out_t *out, es_out_id_t *es )
...
@@ -1591,7 +1585,6 @@ static void EsSelect( es_out_t *out, es_out_id_t *es )
}
}
else
if
(
es
->
fmt
.
i_cat
==
AUDIO_ES
)
else
if
(
es
->
fmt
.
i_cat
==
AUDIO_ES
)
{
{
var_Get
(
p_input
,
"audio"
,
&
val
);
if
(
!
var_GetBool
(
p_input
,
out
->
b_sout
?
"sout-audio"
:
"audio"
)
)
if
(
!
var_GetBool
(
p_input
,
out
->
b_sout
?
"sout-audio"
:
"audio"
)
)
{
{
msg_Dbg
(
p_input
,
"audio is disabled, not selecting ES 0x%x"
,
msg_Dbg
(
p_input
,
"audio is disabled, not selecting ES 0x%x"
,
...
@@ -1601,7 +1594,6 @@ static void EsSelect( es_out_t *out, es_out_id_t *es )
...
@@ -1601,7 +1594,6 @@ static void EsSelect( es_out_t *out, es_out_id_t *es )
}
}
if
(
es
->
fmt
.
i_cat
==
SPU_ES
)
if
(
es
->
fmt
.
i_cat
==
SPU_ES
)
{
{
var_Get
(
p_input
,
"spu"
,
&
val
);
if
(
!
var_GetBool
(
p_input
,
out
->
b_sout
?
"sout-spu"
:
"spu"
)
)
if
(
!
var_GetBool
(
p_input
,
out
->
b_sout
?
"sout-spu"
:
"spu"
)
)
{
{
msg_Dbg
(
p_input
,
"spu is disabled, not selecting ES 0x%x"
,
msg_Dbg
(
p_input
,
"spu is disabled, not selecting ES 0x%x"
,
...
...
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