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
0d7be541
Commit
0d7be541
authored
Aug 09, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: remove dead code
parent
58c6d2e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
src/audio_output/input.c
src/audio_output/input.c
+0
-31
No files found.
src/audio_output/input.c
View file @
0d7be541
...
...
@@ -329,8 +329,6 @@ int aout_InputDelete( audio_output_t * p_aout, aout_input_t * p_input )
*****************************************************************************
* This function must be entered with the input lock.
*****************************************************************************/
/* XXX Do not activate it !! */
//#define AOUT_PROCESS_BEFORE_CHEKS
block_t
*
aout_InputPlay
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
,
block_t
*
p_buffer
,
int
i_input_rate
,
date_t
*
date
)
{
...
...
@@ -344,31 +342,6 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
return
NULL
;
}
#ifdef AOUT_PROCESS_BEFORE_CHEKS
/* Run pre-filters. */
aout_FiltersPlay
(
p_aout
,
p_input
->
pp_filters
,
p_input
->
i_nb_filters
,
&
p_buffer
);
if
(
!
p_buffer
)
return
NULL
;
/* Actually run the resampler now. */
if
(
p_input
->
i_nb_resamplers
>
0
)
{
const
mtime_t
i_date
=
p_buffer
->
i_pts
;
aout_FiltersPlay
(
p_aout
,
p_input
->
pp_resamplers
,
p_input
->
i_nb_resamplers
,
&
p_buffer
);
}
if
(
!
p_buffer
)
return
NULL
;
if
(
p_buffer
->
i_nb_samples
<=
0
)
{
block_Release
(
p_buffer
);
return
NULL
;
}
#endif
/* Handle input rate change, but keep drift correction */
if
(
i_input_rate
!=
p_input
->
i_last_input_rate
)
{
...
...
@@ -445,12 +418,10 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
return
NULL
;
}
#ifndef AOUT_PROCESS_BEFORE_CHEKS
/* Run pre-filters. */
aout_FiltersPlay
(
p_input
->
pp_filters
,
p_input
->
i_nb_filters
,
&
p_buffer
);
if
(
!
p_buffer
)
return
NULL
;
#endif
/* Run the resampler if needed.
* We first need to calculate the output rate of this resampler. */
...
...
@@ -522,7 +493,6 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
}
}
#ifndef AOUT_PROCESS_BEFORE_CHEKS
/* Actually run the resampler now. */
if
(
p_input
->
i_nb_resamplers
>
0
)
{
...
...
@@ -537,7 +507,6 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
block_Release
(
p_buffer
);
return
NULL
;
}
#endif
p_buffer
->
i_pts
=
start_date
;
return
p_buffer
;
...
...
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