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
47d107ca
Commit
47d107ca
authored
Aug 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trivial code factorization
parent
1689e7ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
src/audio_output/input.c
src/audio_output/input.c
+7
-11
No files found.
src/audio_output/input.c
View file @
47d107ca
...
...
@@ -300,26 +300,22 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
p_filter
->
p_owner
->
p_aout
=
p_aout
;
p_filter
->
p_owner
->
p_input
=
p_input
;
/* request format */
memcpy
(
&
p_filter
->
input
,
&
chain_output_format
,
sizeof
(
audio_sample_format_t
)
);
memcpy
(
&
p_filter
->
output
,
&
chain_output_format
,
sizeof
(
audio_sample_format_t
)
);
/* try to find the requested filter */
if
(
i_visual
==
2
)
/* this can only be a visualization module */
{
/* request format */
memcpy
(
&
p_filter
->
input
,
&
chain_output_format
,
sizeof
(
audio_sample_format_t
)
);
memcpy
(
&
p_filter
->
output
,
&
chain_output_format
,
sizeof
(
audio_sample_format_t
)
);
p_filter
->
p_module
=
module_need
(
p_filter
,
"visualization"
,
psz_parser
,
true
);
}
else
/* this can be a audio filter module as well as a visualization module */
{
/* request format */
memcpy
(
&
p_filter
->
input
,
&
chain_input_format
,
sizeof
(
audio_sample_format_t
)
);
memcpy
(
&
p_filter
->
output
,
&
chain_output_format
,
sizeof
(
audio_sample_format_t
)
);
p_filter
->
p_module
=
module_need
(
p_filter
,
"audio filter"
,
psz_parser
,
true
);
...
...
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