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
6feb8beb
Commit
6feb8beb
authored
Aug 06, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout_DecNew: constify
parent
d69ef1f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+3
-2
src/audio_output/dec.c
src/audio_output/dec.c
+1
-3
src/input/decoder.c
src/input/decoder.c
+1
-0
No files found.
src/audio_output/aout_internal.h
View file @
6feb8beb
...
@@ -172,8 +172,9 @@ void aout_FormatsPrint( audio_output_t * p_aout, const char * psz_text, const au
...
@@ -172,8 +172,9 @@ void aout_FormatsPrint( audio_output_t * p_aout, const char * psz_text, const au
bool
aout_ChangeFilterString
(
vlc_object_t
*
,
audio_output_t
*
,
const
char
*
psz_variable
,
const
char
*
psz_name
,
bool
b_add
);
bool
aout_ChangeFilterString
(
vlc_object_t
*
,
audio_output_t
*
,
const
char
*
psz_variable
,
const
char
*
psz_name
,
bool
b_add
);
/* From dec.c */
/* From dec.c */
aout_input_t
*
aout_DecNew
(
audio_output_t
*
,
audio_sample_format_t
*
,
aout_input_t
*
aout_DecNew
(
audio_output_t
*
,
const
audio_sample_format_t
*
,
const
audio_replay_gain_t
*
,
const
aout_request_vout_t
*
);
const
audio_replay_gain_t
*
,
const
aout_request_vout_t
*
);
void
aout_DecDelete
(
audio_output_t
*
,
aout_input_t
*
);
void
aout_DecDelete
(
audio_output_t
*
,
aout_input_t
*
);
aout_buffer_t
*
aout_DecNewBuffer
(
aout_input_t
*
,
size_t
);
aout_buffer_t
*
aout_DecNewBuffer
(
aout_input_t
*
,
size_t
);
void
aout_DecDeleteBuffer
(
audio_output_t
*
,
aout_input_t
*
,
aout_buffer_t
*
);
void
aout_DecDeleteBuffer
(
audio_output_t
*
,
aout_input_t
*
,
aout_buffer_t
*
);
...
...
src/audio_output/dec.c
View file @
6feb8beb
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
* Creates an audio output
* Creates an audio output
*/
*/
aout_input_t
*
aout_DecNew
(
audio_output_t
*
p_aout
,
aout_input_t
*
aout_DecNew
(
audio_output_t
*
p_aout
,
audio_sample_format_t
*
p_format
,
const
audio_sample_format_t
*
p_format
,
const
audio_replay_gain_t
*
p_replay_gain
,
const
audio_replay_gain_t
*
p_replay_gain
,
const
aout_request_vout_t
*
p_request_vout
)
const
aout_request_vout_t
*
p_request_vout
)
{
{
...
@@ -84,8 +84,6 @@ aout_input_t *aout_DecNew( audio_output_t *p_aout,
...
@@ -84,8 +84,6 @@ aout_input_t *aout_DecNew( audio_output_t *p_aout,
p_input
->
b_error
=
true
;
p_input
->
b_error
=
true
;
aout_FormatPrepare
(
p_format
);
memcpy
(
&
p_input
->
input
,
p_format
,
memcpy
(
&
p_input
->
input
,
p_format
,
sizeof
(
audio_sample_format_t
)
);
sizeof
(
audio_sample_format_t
)
);
if
(
p_replay_gain
)
if
(
p_replay_gain
)
...
...
src/input/decoder.c
View file @
6feb8beb
...
@@ -2287,6 +2287,7 @@ static aout_buffer_t *aout_new_buffer( decoder_t *p_dec, int i_samples )
...
@@ -2287,6 +2287,7 @@ static aout_buffer_t *aout_new_buffer( decoder_t *p_dec, int i_samples )
p_aout
=
input_resource_RequestAout
(
p_owner
->
p_resource
,
NULL
);
p_aout
=
input_resource_RequestAout
(
p_owner
->
p_resource
,
NULL
);
if
(
p_aout
)
if
(
p_aout
)
{
{
aout_FormatPrepare
(
&
format
);
p_aout_input
=
aout_DecNew
(
p_aout
,
&
format
,
p_aout_input
=
aout_DecNew
(
p_aout
,
&
format
,
&
p_dec
->
fmt_out
.
audio_replay_gain
,
&
p_dec
->
fmt_out
.
audio_replay_gain
,
&
request_vout
);
&
request_vout
);
...
...
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