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
b7e5d7c5
Commit
b7e5d7c5
authored
Oct 30, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport of [13046] , refs #416
parent
91e7f05a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
43 deletions
+50
-43
src/audio_output/input.c
src/audio_output/input.c
+50
-43
No files found.
src/audio_output/input.c
View file @
b7e5d7c5
...
...
@@ -52,6 +52,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input )
audio_sample_format_t
chain_output_format
;
vlc_value_t
val
,
text
;
char
*
psz_filters
,
*
psz_visual
;
int
i_visual
;
aout_FormatPrint
(
p_aout
,
"input"
,
&
p_input
->
input
);
...
...
@@ -157,23 +158,15 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input )
var_Get
(
p_aout
,
"audio-visual"
,
&
val
);
psz_visual
=
val
.
psz_string
;
if
(
psz_filters
&&
*
psz_filters
&&
psz_visual
&&
*
psz_visual
)
/* parse user filter lists */
for
(
i_visual
=
0
;
i_visual
<
2
;
i_visual
++
)
{
psz_filters
=
(
char
*
)
realloc
(
psz_filters
,
strlen
(
psz_filters
)
+
strlen
(
psz_visual
)
+
1
);
sprintf
(
psz_filters
,
"%s:%s"
,
psz_filters
,
psz_visual
);
}
else
if
(
psz_visual
&&
*
psz_visual
)
{
if
(
psz_filters
)
free
(
psz_filters
);
psz_filters
=
strdup
(
psz_visual
);
}
char
*
psz_next
=
NULL
;
char
*
psz_parser
=
i_visual
?
psz_visual
:
psz_filters
;
if
(
psz_parser
==
NULL
||
!*
psz_parser
)
continue
;
/* parse user filter list */
if
(
psz_filters
&&
*
psz_filters
)
{
char
*
psz_parser
=
psz_filters
;
char
*
psz_next
;
while
(
psz_parser
&&
*
psz_parser
)
{
aout_filter_t
*
p_filter
=
NULL
;
...
...
@@ -209,13 +202,26 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input )
vlc_object_attach
(
p_filter
,
p_aout
);
/* try to find the requested filter */
if
(
i_visual
==
1
)
/* 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
,
VLC_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
)
);
/* try to find the requested filter */
p_filter
->
p_module
=
module_Need
(
p_filter
,
"audio filter"
,
psz_parser
,
VLC_TRUE
);
...
...
@@ -243,6 +249,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input )
psz_parser
,
VLC_TRUE
);
}
}
}
/* failure */
if
(
p_filter
->
p_module
==
NULL
)
...
...
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