Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a0ee6ee7
Commit
a0ee6ee7
authored
Apr 07, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove AOUT_MAX_INPUTS
parent
2b2af1eb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
12 deletions
+3
-12
include/vlc_aout.h
include/vlc_aout.h
+1
-1
include/vlc_config.h
include/vlc_config.h
+0
-3
src/audio_output/dec.c
src/audio_output/dec.c
+2
-8
No files found.
include/vlc_aout.h
View file @
a0ee6ee7
...
...
@@ -233,7 +233,7 @@ struct aout_instance_t
vlc_mutex_t
volume_vars_lock
;
/* Input streams & pre-filters */
aout_input_t
*
pp_inputs
[
AOUT_MAX_INPUTS
];
aout_input_t
*
pp_inputs
[
1
];
int
i_nb_inputs
;
/* Mixer */
...
...
include/vlc_config.h
View file @
a0ee6ee7
...
...
@@ -92,9 +92,6 @@
/* Max number of pre-filters per input, and max number of post-filters */
#define AOUT_MAX_FILTERS 10
/* Max number of inputs */
#define AOUT_MAX_INPUTS 5
/* Buffers which arrive in advance of more than AOUT_MAX_ADVANCE_TIME
* will be considered as bogus and be trashed */
#define AOUT_MAX_ADVANCE_TIME (DEFAULT_PTS_DELAY * 5)
...
...
src/audio_output/dec.c
View file @
a0ee6ee7
...
...
@@ -82,12 +82,7 @@ aout_input_t *aout_DecNew( aout_instance_t *p_aout,
/* We can only be called by the decoder, so no need to lock
* p_input->lock. */
aout_lock_mixer
(
p_aout
);
if
(
p_aout
->
i_nb_inputs
>=
AOUT_MAX_INPUTS
)
{
msg_Err
(
p_aout
,
"too many inputs already (%d)"
,
p_aout
->
i_nb_inputs
);
goto
error
;
}
assert
(
p_aout
->
i_nb_inputs
==
0
);
p_input
=
calloc
(
1
,
sizeof
(
aout_input_t
));
if
(
!
p_input
)
...
...
@@ -194,9 +189,8 @@ int aout_DecDelete( aout_instance_t * p_aout, aout_input_t * p_input )
}
/* Remove the input from the list. */
memmove
(
&
p_aout
->
pp_inputs
[
i_input
],
&
p_aout
->
pp_inputs
[
i_input
+
1
],
(
AOUT_MAX_INPUTS
-
i_input
-
1
)
*
sizeof
(
aout_input_t
*
)
);
p_aout
->
i_nb_inputs
--
;
assert
(
p_aout
->
i_nb_inputs
==
0
);
aout_InputDelete
(
p_aout
,
p_input
);
...
...
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