Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
37e6859a
Commit
37e6859a
authored
May 31, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redumdant audio format comparisons
aout_FiltersCreatePipeline() deals with it internally.
parent
43c4b5aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
24 deletions
+17
-24
src/audio_output/input.c
src/audio_output/input.c
+17
-24
No files found.
src/audio_output/input.c
View file @
37e6859a
...
...
@@ -344,9 +344,6 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
}
/* complete the filter chain if necessary */
if
(
!
AOUT_FMTS_IDENTICAL
(
&
chain_input_format
,
&
p_filter
->
fmt_in
.
audio
)
)
{
if
(
aout_FiltersCreatePipeline
(
p_aout
,
p_input
->
pp_filters
,
&
p_input
->
i_nb_filters
,
&
chain_input_format
,
...
...
@@ -362,7 +359,6 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
psz_parser
=
psz_next
;
continue
;
}
}
/* success */
p_input
->
pp_filters
[
p_input
->
i_nb_filters
++
]
=
p_filter
;
...
...
@@ -381,8 +377,6 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
free
(
psz_scaletempo
);
/* complete the filter chain if necessary */
if
(
!
AOUT_FMTS_IDENTICAL
(
&
chain_input_format
,
&
chain_output_format
)
)
{
if
(
aout_FiltersCreatePipeline
(
p_aout
,
p_input
->
pp_filters
,
&
p_input
->
i_nb_filters
,
&
chain_input_format
,
...
...
@@ -391,7 +385,6 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
inputFailure
(
p_aout
,
p_input
,
"couldn't set an input pipeline"
);
return
-
1
;
}
}
/* Create resamplers. */
if
(
!
AOUT_FMT_NON_LINEAR
(
&
p_aout
->
mixer_format
)
)
...
...
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