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
6b15eba4
Commit
6b15eba4
authored
Aug 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid hackish use of psz_object_name
parent
47d107ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
src/audio_output/input.c
src/audio_output/input.c
+5
-13
No files found.
src/audio_output/input.c
View file @
6b15eba4
...
...
@@ -248,6 +248,8 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
/* parse user filter lists */
char
*
const
ppsz_array
[]
=
{
psz_scaletempo
,
psz_filters
,
psz_visual
};
p_input
->
p_playback_rate_filter
=
NULL
;
for
(
i_visual
=
0
;
i_visual
<
3
&&
!
AOUT_FMT_NON_LINEAR
(
&
chain_output_format
);
i_visual
++
)
{
char
*
psz_next
=
NULL
;
...
...
@@ -388,6 +390,9 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
memcpy
(
&
chain_input_format
,
&
p_filter
->
output
,
sizeof
(
audio_sample_format_t
)
);
if
(
i_visual
==
0
)
/* scaletempo */
p_input
->
p_playback_rate_filter
=
p_filter
;
/* next filter if any */
psz_parser
=
psz_next
;
}
...
...
@@ -443,19 +448,6 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
}
p_input
->
i_resampling_type
=
AOUT_RESAMPLING_NONE
;
p_input
->
p_playback_rate_filter
=
NULL
;
for
(
int
i
=
0
;
i
<
p_input
->
i_nb_filters
;
i
++
)
{
aout_filter_t
*
p_filter
=
p_input
->
pp_filters
[
i
];
/* FIXME: suspicious access to psz_object_name */
#warning Is this right?
if
(
strcmp
(
"scaletempo"
,
vlc_internals
(
p_filter
)
->
psz_object_name
)
==
0
)
{
p_input
->
p_playback_rate_filter
=
p_filter
;
break
;
}
}
if
(
!
p_input
->
p_playback_rate_filter
&&
p_input
->
i_nb_resamplers
>
0
)
{
p_input
->
p_playback_rate_filter
=
p_input
->
pp_resamplers
[
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