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
bce9264e
Commit
bce9264e
authored
Apr 09, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove write-only aout_input_t.input_alloc
parent
f7d12502
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+0
-1
src/audio_output/input.c
src/audio_output/input.c
+0
-21
No files found.
src/audio_output/aout_internal.h
View file @
bce9264e
...
...
@@ -50,7 +50,6 @@ struct aout_input_t
vlc_mutex_t
lock
;
audio_sample_format_t
input
;
aout_alloc_t
input_alloc
;
/* pre-filters */
filter_t
*
pp_filters
[
AOUT_MAX_FILTERS
];
...
...
src/audio_output/input.c
View file @
bce9264e
...
...
@@ -395,10 +395,6 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
}
}
/* Prepare hints for the buffer allocator. */
p_input
->
input_alloc
.
b_alloc
=
true
;
p_input
->
input_alloc
.
i_bytes_per_sec
=
-
1
;
/* Create resamplers. */
if
(
!
AOUT_FMT_NON_LINEAR
(
&
p_aout
->
mixer_format
)
)
{
...
...
@@ -419,11 +415,6 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
return
-
1
;
}
aout_FiltersHintBuffers
(
p_aout
,
p_input
->
pp_resamplers
,
p_input
->
i_nb_resamplers
,
&
p_input
->
input_alloc
);
p_input
->
input_alloc
.
b_alloc
=
true
;
/* Setup the initial rate of the resampler */
p_input
->
pp_resamplers
[
0
]
->
fmt_in
.
audio
.
i_rate
=
p_input
->
input
.
i_rate
;
}
...
...
@@ -434,18 +425,6 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
p_input
->
p_playback_rate_filter
=
p_input
->
pp_resamplers
[
0
];
}
aout_FiltersHintBuffers
(
p_aout
,
p_input
->
pp_filters
,
p_input
->
i_nb_filters
,
&
p_input
->
input_alloc
);
p_input
->
input_alloc
.
b_alloc
=
true
;
/* i_bytes_per_sec is still == -1 if no filters */
p_input
->
input_alloc
.
i_bytes_per_sec
=
__MAX
(
p_input
->
input_alloc
.
i_bytes_per_sec
,
(
int
)(
p_input
->
input
.
i_bytes_per_frame
*
p_input
->
input
.
i_rate
/
p_input
->
input
.
i_frame_length
)
);
ReplayGainSelect
(
p_aout
,
p_input
);
/* Success */
...
...
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