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
ac5d4e03
Commit
ac5d4e03
authored
Sep 03, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed invalid p_aout->p_mixer usage in aout input.
parent
6c5dcb6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
src/audio_output/input.c
src/audio_output/input.c
+7
-8
No files found.
src/audio_output/input.c
View file @
ac5d4e03
...
@@ -82,8 +82,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
...
@@ -82,8 +82,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
p_input
->
i_nb_resamplers
=
p_input
->
i_nb_filters
=
0
;
p_input
->
i_nb_resamplers
=
p_input
->
i_nb_filters
=
0
;
/* Prepare FIFO. */
/* Prepare FIFO. */
assert
(
p_aout
->
p_mixer
);
aout_FifoInit
(
p_aout
,
&
p_input
->
mixer
.
fifo
,
p_aout
->
mixer_format
.
i_rate
);
aout_FifoInit
(
p_aout
,
&
p_input
->
mixer
.
fifo
,
p_aout
->
p_mixer
->
fmt
.
i_rate
);
p_input
->
mixer
.
begin
=
NULL
;
p_input
->
mixer
.
begin
=
NULL
;
/* */
/* */
...
@@ -99,7 +98,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
...
@@ -99,7 +98,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
/* Prepare format structure */
/* Prepare format structure */
chain_input_format
=
p_input
->
input
;
chain_input_format
=
p_input
->
input
;
chain_output_format
=
p_aout
->
p_mixer
->
fm
t
;
chain_output_format
=
p_aout
->
mixer_forma
t
;
chain_output_format
.
i_rate
=
p_input
->
input
.
i_rate
;
chain_output_format
.
i_rate
=
p_input
->
input
.
i_rate
;
aout_FormatPrepare
(
&
chain_output_format
);
aout_FormatPrepare
(
&
chain_output_format
);
...
@@ -410,12 +409,12 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
...
@@ -410,12 +409,12 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
p_input
->
input_alloc
.
i_bytes_per_sec
=
-
1
;
p_input
->
input_alloc
.
i_bytes_per_sec
=
-
1
;
/* Create resamplers. */
/* Create resamplers. */
if
(
!
AOUT_FMT_NON_LINEAR
(
&
p_aout
->
p_mixer
->
fm
t
)
)
if
(
!
AOUT_FMT_NON_LINEAR
(
&
p_aout
->
mixer_forma
t
)
)
{
{
chain_output_format
.
i_rate
=
(
__MAX
(
p_input
->
input
.
i_rate
,
chain_output_format
.
i_rate
=
(
__MAX
(
p_input
->
input
.
i_rate
,
p_aout
->
p_mixer
->
fm
t
.
i_rate
)
p_aout
->
mixer_forma
t
.
i_rate
)
*
(
100
+
AOUT_MAX_RESAMPLING
))
/
100
;
*
(
100
+
AOUT_MAX_RESAMPLING
))
/
100
;
if
(
chain_output_format
.
i_rate
==
p_aout
->
p_mixer
->
fm
t
.
i_rate
)
if
(
chain_output_format
.
i_rate
==
p_aout
->
mixer_forma
t
.
i_rate
)
{
{
/* Just in case... */
/* Just in case... */
chain_output_format
.
i_rate
++
;
chain_output_format
.
i_rate
++
;
...
@@ -423,7 +422,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
...
@@ -423,7 +422,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
if
(
aout_FiltersCreatePipeline
(
p_aout
,
p_input
->
pp_resamplers
,
if
(
aout_FiltersCreatePipeline
(
p_aout
,
p_input
->
pp_resamplers
,
&
p_input
->
i_nb_resamplers
,
&
p_input
->
i_nb_resamplers
,
&
chain_output_format
,
&
chain_output_format
,
&
p_aout
->
p_mixer
->
fm
t
)
<
0
)
&
p_aout
->
mixer_forma
t
)
<
0
)
{
{
inputFailure
(
p_aout
,
p_input
,
"couldn't set a resampler pipeline"
);
inputFailure
(
p_aout
,
p_input
,
"couldn't set a resampler pipeline"
);
return
-
1
;
return
-
1
;
...
@@ -526,7 +525,7 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
...
@@ -526,7 +525,7 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
b_paused
=
p_input
->
b_paused
;
b_paused
=
p_input
->
b_paused
;
i_pause_date
=
p_input
->
i_pause_date
;
i_pause_date
=
p_input
->
i_pause_date
;
aout_FifoInit
(
p_aout
,
&
p_input
->
mixer
.
fifo
,
p_aout
->
p_mixer
->
fm
t
.
i_rate
);
aout_FifoInit
(
p_aout
,
&
p_input
->
mixer
.
fifo
,
p_aout
->
mixer_forma
t
.
i_rate
);
aout_InputDelete
(
p_aout
,
p_input
);
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