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
144ba0d1
Commit
144ba0d1
authored
Aug 06, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout_FiltersCreatePipeline: use vlc_object rather than audio_output
parent
26b038f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+3
-1
src/audio_output/filters.c
src/audio_output/filters.c
+4
-3
No files found.
src/audio_output/aout_internal.h
View file @
144ba0d1
...
@@ -135,8 +135,10 @@ block_t *aout_InputPlay( audio_output_t *p_aout, aout_input_t *p_input,
...
@@ -135,8 +135,10 @@ block_t *aout_InputPlay( audio_output_t *p_aout, aout_input_t *p_input,
void
aout_InputCheckAndRestart
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
);
void
aout_InputCheckAndRestart
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
);
/* From filters.c : */
/* From filters.c : */
int
aout_FiltersCreatePipeline
(
audio_outpu
t_t
*
,
filter_t
**
,
int
*
,
int
aout_FiltersCreatePipeline
(
vlc_objec
t_t
*
,
filter_t
**
,
int
*
,
const
audio_sample_format_t
*
,
const
audio_sample_format_t
*
);
const
audio_sample_format_t
*
,
const
audio_sample_format_t
*
);
#define aout_FiltersCreatePipeline(o, pv, pc, inf, outf) \
aout_FiltersCreatePipeline(VLC_OBJECT(o), pv, pc, inf, outf)
void
aout_FiltersDestroyPipeline
(
filter_t
*
const
*
,
unsigned
);
void
aout_FiltersDestroyPipeline
(
filter_t
*
const
*
,
unsigned
);
void
aout_FiltersPlay
(
filter_t
*
const
*
,
unsigned
,
aout_buffer_t
**
);
void
aout_FiltersPlay
(
filter_t
*
const
*
,
unsigned
,
aout_buffer_t
**
);
...
...
src/audio_output/filters.c
View file @
144ba0d1
...
@@ -49,14 +49,14 @@ block_t *aout_FilterBufferNew( filter_t *p_filter, int size )
...
@@ -49,14 +49,14 @@ block_t *aout_FilterBufferNew( filter_t *p_filter, int size )
/*****************************************************************************
/*****************************************************************************
* FindFilter: find an audio filter for a specific transformation
* FindFilter: find an audio filter for a specific transformation
*****************************************************************************/
*****************************************************************************/
static
filter_t
*
FindFilter
(
audio_output_t
*
p_aout
,
static
filter_t
*
FindFilter
(
vlc_object_t
*
obj
,
const
audio_sample_format_t
*
p_input_format
,
const
audio_sample_format_t
*
p_input_format
,
const
audio_sample_format_t
*
p_output_format
)
const
audio_sample_format_t
*
p_output_format
)
{
{
static
const
char
typename
[]
=
"audio filter"
;
static
const
char
typename
[]
=
"audio filter"
;
filter_t
*
p_filter
;
filter_t
*
p_filter
;
p_filter
=
vlc_custom_create
(
p_aout
,
sizeof
(
*
p_filter
),
typename
);
p_filter
=
vlc_custom_create
(
obj
,
sizeof
(
*
p_filter
),
typename
);
if
(
p_filter
==
NULL
)
return
NULL
;
if
(
p_filter
==
NULL
)
return
NULL
;
...
@@ -120,6 +120,7 @@ static int SplitConversion( const audio_sample_format_t *restrict infmt,
...
@@ -120,6 +120,7 @@ static int SplitConversion( const audio_sample_format_t *restrict infmt,
return
AOUT_FMTS_IDENTICAL
(
infmt
,
midfmt
)
?
-
1
:
0
;
return
AOUT_FMTS_IDENTICAL
(
infmt
,
midfmt
)
?
-
1
:
0
;
}
}
#undef aout_FiltersCreatePipeline
/**
/**
* Allocates audio format conversion filters
* Allocates audio format conversion filters
* @param obj parent VLC object for new filters
* @param obj parent VLC object for new filters
...
@@ -129,7 +130,7 @@ static int SplitConversion( const audio_sample_format_t *restrict infmt,
...
@@ -129,7 +130,7 @@ static int SplitConversion( const audio_sample_format_t *restrict infmt,
* @param outfmt output audio format
* @param outfmt output audio format
* @return 0 on success, -1 on failure
* @return 0 on success, -1 on failure
*/
*/
int
aout_FiltersCreatePipeline
(
audio_outpu
t_t
*
obj
,
int
aout_FiltersCreatePipeline
(
vlc_objec
t_t
*
obj
,
filter_t
**
filters
,
filter_t
**
filters
,
int
*
nb_filters
,
int
*
nb_filters
,
const
audio_sample_format_t
*
restrict
infmt
,
const
audio_sample_format_t
*
restrict
infmt
,
...
...
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