Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
9b4469b2
Commit
9b4469b2
authored
Sep 27, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Privatize aout_request_vout_t
parent
e44eb2ad
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
36 deletions
+11
-36
include/vlc_aout.h
include/vlc_aout.h
+0
-15
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+7
-0
src/audio_output/filters.c
src/audio_output/filters.c
+0
-12
src/audio_output/input.c
src/audio_output/input.c
+4
-9
No files found.
include/vlc_aout.h
View file @
9b4469b2
...
...
@@ -155,14 +155,6 @@ struct aout_fifo_t
#include <vlc_aout_mixer.h>
#include <vlc_block.h>
/* */
typedef
struct
{
vout_thread_t
*
(
*
pf_request_vout
)(
void
*
,
vout_thread_t
*
,
video_format_t
*
,
bool
b_recycle
);
void
*
p_private
;
}
aout_request_vout_t
;
/** audio output filter */
typedef
struct
aout_filter_owner_sys_t
aout_filter_owner_sys_t
;
typedef
struct
aout_filter_sys_t
aout_filter_sys_t
;
...
...
@@ -183,13 +175,6 @@ struct aout_filter_t
void
(
*
pf_do_work
)(
aout_instance_t
*
,
aout_filter_t
*
,
aout_buffer_t
*
,
aout_buffer_t
*
);
/* Owner fieldS
* XXX You MUST not use them directly */
/* Vout callback
* XXX use aout_filter_RequestVout */
aout_request_vout_t
request_vout
;
/* Private structure for the owner of the filter */
aout_filter_owner_sys_t
*
p_owner
;
};
...
...
src/audio_output/aout_internal.h
View file @
9b4469b2
...
...
@@ -31,6 +31,13 @@
aout_buffer_t
*
aout_BufferAlloc
(
aout_alloc_t
*
allocation
,
mtime_t
microseconds
,
aout_buffer_t
*
old_buffer
);
typedef
struct
{
struct
vout_thread_t
*
(
*
pf_request_vout
)(
void
*
,
struct
vout_thread_t
*
,
video_format_t
*
,
bool
);
void
*
p_private
;
}
aout_request_vout_t
;
struct
aout_filter_owner_sys_t
{
aout_instance_t
*
p_aout
;
...
...
src/audio_output/filters.c
View file @
9b4469b2
...
...
@@ -373,15 +373,3 @@ void aout_FiltersPlay( aout_instance_t * p_aout,
}
}
/*****************************************************************************
* aout_filter_RequestVout
*****************************************************************************/
vout_thread_t
*
aout_filter_RequestVout
(
aout_filter_t
*
p_filter
,
vout_thread_t
*
p_vout
,
video_format_t
*
p_fmt
)
{
if
(
!
p_filter
->
request_vout
.
pf_request_vout
)
return
NULL
;
return
p_filter
->
request_vout
.
pf_request_vout
(
p_filter
->
request_vout
.
p_private
,
p_vout
,
p_fmt
,
true
);
}
src/audio_output/input.c
View file @
9b4469b2
...
...
@@ -63,8 +63,6 @@ static void ReplayGainSelect( aout_instance_t *, aout_input_t * );
static
vout_thread_t
*
RequestVout
(
void
*
,
vout_thread_t
*
,
video_format_t
*
,
bool
);
static
vout_thread_t
*
RequestVoutFromFilter
(
void
*
,
vout_thread_t
*
,
video_format_t
*
,
bool
);
/*****************************************************************************
* aout_InputNew : allocate a new input and rework the filter pipeline
...
...
@@ -285,9 +283,6 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
vlc_object_attach
(
p_filter
,
p_aout
);
p_filter
->
request_vout
.
pf_request_vout
=
RequestVoutFromFilter
;
p_filter
->
request_vout
.
p_private
=
p_input
;
p_filter
->
p_owner
=
malloc
(
sizeof
(
*
p_filter
->
p_owner
)
);
p_filter
->
p_owner
->
p_aout
=
p_aout
;
p_filter
->
p_owner
->
p_input
=
p_input
;
...
...
@@ -810,14 +805,14 @@ static vout_thread_t *RequestVout( void *p_private,
return
vout_Request
(
p_aout
,
p_vout
,
p_fmt
);
}
static
vout_thread_t
*
RequestVoutFromFilter
(
void
*
p_private
,
vout_thread_t
*
p_vout
,
video_format_t
*
p_fmt
,
bool
b_recycle
)
vout_thread_t
*
aout_filter_RequestVout
(
aout_filter_t
*
p_filter
,
vout_thread_t
*
p_vout
,
video_format_t
*
p_fmt
)
{
aout_input_t
*
p_input
=
p_
private
;
aout_input_t
*
p_input
=
p_
filter
->
p_owner
->
p_input
;
aout_request_vout_t
*
p_request
=
&
p_input
->
request_vout
;
return
p_request
->
pf_request_vout
(
p_request
->
p_private
,
p_vout
,
p_fmt
,
p_input
->
b_recycle_vout
&&
b_recycle
);
p_vout
,
p_fmt
,
p_input
->
b_recycle_vout
);
}
static
int
ChangeFiltersString
(
aout_instance_t
*
p_aout
,
const
char
*
psz_variable
,
...
...
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