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
7efec6d6
Commit
7efec6d6
authored
Nov 11, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: remove write-only parameter
parent
f74dd10e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+1
-3
src/audio_output/dec.c
src/audio_output/dec.c
+2
-2
src/audio_output/input.c
src/audio_output/input.c
+1
-3
No files found.
src/audio_output/aout_internal.h
View file @
7efec6d6
...
...
@@ -49,8 +49,6 @@ typedef struct aout_volume aout_volume_t;
/** an input stream for the audio output */
struct
aout_input_t
{
unsigned
samplerate
;
/**< Input sample rate */
int
i_resampling_type
;
int
i_resamp_start_drift
;
...
...
@@ -108,7 +106,7 @@ static inline aout_owner_t *aout_owner (audio_output_t *aout)
*****************************************************************************/
/* From input.c : */
aout_input_t
*
aout_InputNew
(
const
audio_sample_format_t
*
);
aout_input_t
*
aout_InputNew
(
void
);
void
aout_InputDelete
(
aout_input_t
*
);
block_t
*
aout_InputPlay
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
,
block_t
*
p_buffer
,
int
i_input_rate
,
date_t
*
);
...
...
src/audio_output/dec.c
View file @
7efec6d6
...
...
@@ -97,7 +97,7 @@ error:
date_Set
(
&
owner
->
sync
.
date
,
VLC_TS_INVALID
);
assert
(
owner
->
input
==
NULL
);
owner
->
input
=
aout_InputNew
(
p_format
);
owner
->
input
=
aout_InputNew
();
aout_unlock
(
p_aout
);
return
ret
;
}
...
...
@@ -160,7 +160,7 @@ static void aout_CheckRestart (audio_output_t *aout)
if
(
aout_FiltersNew
(
aout
,
&
owner
->
input_format
,
&
owner
->
mixer_format
,
&
request_vout
)
==
0
)
owner
->
input
=
aout_InputNew
(
&
owner
->
input_format
);
owner
->
input
=
aout_InputNew
();
}
/**
...
...
src/audio_output/input.c
View file @
7efec6d6
...
...
@@ -43,12 +43,10 @@ static void inputResamplingStop( audio_output_t *, aout_input_t * );
/*****************************************************************************
* aout_InputNew : allocate a new input and rework the filter pipeline
*****************************************************************************/
aout_input_t
*
aout_InputNew
(
const
audio_sample_format_t
*
restrict
infmt
)
aout_input_t
*
aout_InputNew
(
void
)
{
aout_input_t
*
p_input
=
xmalloc
(
sizeof
(
*
p_input
));
p_input
->
samplerate
=
infmt
->
i_rate
;
p_input
->
i_resampling_type
=
AOUT_RESAMPLING_NONE
;
p_input
->
i_last_input_rate
=
INPUT_RATE_DEFAULT
;
p_input
->
i_buffer_lost
=
0
;
...
...
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