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
27922fbe
Commit
27922fbe
authored
Aug 08, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AoutInputsMarkToRestart: de-inline and rename
parent
c2b1d5b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
16 deletions
+17
-16
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+1
-13
src/audio_output/input.c
src/audio_output/input.c
+15
-2
src/audio_output/intf.c
src/audio_output/intf.c
+1
-1
No files found.
src/audio_output/aout_internal.h
View file @
27922fbe
...
@@ -137,6 +137,7 @@ int aout_InputDelete( audio_output_t * p_aout, aout_input_t * p_input );
...
@@ -137,6 +137,7 @@ int aout_InputDelete( audio_output_t * p_aout, aout_input_t * p_input );
block_t
*
aout_InputPlay
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
,
block_t
*
aout_InputPlay
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
,
block_t
*
p_buffer
,
int
i_input_rate
,
date_t
*
);
block_t
*
p_buffer
,
int
i_input_rate
,
date_t
*
);
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
);
void
aout_InputRequestRestart
(
audio_output_t
*
p_aout
);
/* From filters.c : */
/* From filters.c : */
int
aout_FiltersCreatePipeline
(
vlc_object_t
*
,
filter_t
**
,
int
*
,
int
aout_FiltersCreatePipeline
(
vlc_object_t
*
,
filter_t
**
,
int
*
,
...
@@ -243,17 +244,4 @@ static inline void aout_unlock_volume( audio_output_t *p_aout )
...
@@ -243,17 +244,4 @@ static inline void aout_unlock_volume( audio_output_t *p_aout )
#define aout_assert_locked( aout ) \
#define aout_assert_locked( aout ) \
vlc_assert_locked( &aout_owner(aout)->lock )
vlc_assert_locked( &aout_owner(aout)->lock )
/* Helpers */
/**
* This function will safely mark aout input to be restarted as soon as
* possible to take configuration changes into account */
static
inline
void
AoutInputsMarkToRestart
(
audio_output_t
*
p_aout
)
{
aout_lock
(
p_aout
);
if
(
aout_owner
(
p_aout
)
->
input
!=
NULL
)
aout_owner
(
p_aout
)
->
input
->
b_restart
=
true
;
aout_unlock
(
p_aout
);
}
#endif
/* !LIBVLC_AOUT_INTERNAL_H */
#endif
/* !LIBVLC_AOUT_INTERNAL_H */
src/audio_output/input.c
View file @
27922fbe
...
@@ -468,6 +468,19 @@ void aout_InputCheckAndRestart( audio_output_t * p_aout, aout_input_t * p_input
...
@@ -468,6 +468,19 @@ void aout_InputCheckAndRestart( audio_output_t * p_aout, aout_input_t * p_input
p_input
->
b_restart
=
false
;
p_input
->
b_restart
=
false
;
}
}
/**
* This function will safely mark aout input to be restarted as soon as
* possible to take configuration changes into account
*/
void
aout_InputRequestRestart
(
audio_output_t
*
p_aout
)
{
aout_lock
(
p_aout
);
if
(
aout_owner
(
p_aout
)
->
input
!=
NULL
)
aout_owner
(
p_aout
)
->
input
->
b_restart
=
true
;
aout_unlock
(
p_aout
);
}
/*****************************************************************************
/*****************************************************************************
* aout_InputPlay : play a buffer
* aout_InputPlay : play a buffer
*****************************************************************************
*****************************************************************************
...
@@ -806,7 +819,7 @@ static int VisualizationCallback (vlc_object_t *obj, char const *var,
...
@@ -806,7 +819,7 @@ static int VisualizationCallback (vlc_object_t *obj, char const *var,
}
}
/* That sucks FIXME: use "input" instead of cast */
/* That sucks FIXME: use "input" instead of cast */
AoutInputsMarkTo
Restart
((
audio_output_t
*
)
obj
);
aout_InputRequest
Restart
((
audio_output_t
*
)
obj
);
(
void
)
var
;
(
void
)
oldval
;
(
void
)
var
;
(
void
)
oldval
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
@@ -832,7 +845,7 @@ static int EqualizerCallback (vlc_object_t *obj, char const *cmd,
...
@@ -832,7 +845,7 @@ static int EqualizerCallback (vlc_object_t *obj, char const *cmd,
/* That sucks */
/* That sucks */
if
(
ret
)
if
(
ret
)
AoutInputsMarkTo
Restart
((
audio_output_t
*
)
obj
);
aout_InputRequest
Restart
((
audio_output_t
*
)
obj
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
src/audio_output/intf.c
View file @
27922fbe
...
@@ -281,7 +281,7 @@ void aout_EnableFilter( vlc_object_t *p_this, const char *psz_name,
...
@@ -281,7 +281,7 @@ void aout_EnableFilter( vlc_object_t *p_this, const char *psz_name,
if
(
aout_ChangeFilterString
(
p_this
,
VLC_OBJECT
(
p_aout
),
"audio-filter"
,
psz_name
,
b_add
)
)
if
(
aout_ChangeFilterString
(
p_this
,
VLC_OBJECT
(
p_aout
),
"audio-filter"
,
psz_name
,
b_add
)
)
{
{
if
(
p_aout
)
if
(
p_aout
)
AoutInputsMarkTo
Restart
(
p_aout
);
aout_InputRequest
Restart
(
p_aout
);
}
}
if
(
p_aout
)
if
(
p_aout
)
...
...
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