Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
b1ff0c7e
Commit
b1ff0c7e
authored
Mar 10, 2014
by
Rémi Denis-Courmont
Browse files
resource: add input_resource_ResetAout()
parent
147ccd1b
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/vlc_input.h
View file @
b1ff0c7e
...
...
@@ -663,4 +663,9 @@ VLC_API audio_output_t *input_resource_GetAout( input_resource_t * );
*/
VLC_API
void
input_resource_PutAout
(
input_resource_t
*
,
audio_output_t
*
);
/**
* Prevents the existing audio output (if any) from being recycled.
*/
VLC_API
void
input_resource_ResetAout
(
input_resource_t
*
);
#endif
src/input/resource.c
View file @
b1ff0c7e
...
...
@@ -392,12 +392,14 @@ audio_output_t *input_resource_HoldAout( input_resource_t *p_resource )
return
p_aout
;
}
static
void
input_resource_
Terminate
Aout
(
input_resource_t
*
p_resource
)
void
input_resource_
Reset
Aout
(
input_resource_t
*
p_resource
)
{
audio_output_t
*
p_aout
;
audio_output_t
*
p_aout
=
NULL
;
vlc_mutex_lock
(
&
p_resource
->
lock_hold
);
p_aout
=
p_resource
->
p_aout
;
if
(
!
p_resource
->
b_aout_busy
)
p_aout
=
p_resource
->
p_aout
;
p_resource
->
p_aout
=
NULL
;
p_resource
->
b_aout_busy
=
false
;
vlc_mutex_unlock
(
&
p_resource
->
lock_hold
);
...
...
@@ -507,7 +509,7 @@ void input_resource_TerminateSout( input_resource_t *p_resource )
void
input_resource_Terminate
(
input_resource_t
*
p_resource
)
{
input_resource_TerminateSout
(
p_resource
);
input_resource_
Terminate
Aout
(
p_resource
);
input_resource_
Reset
Aout
(
p_resource
);
input_resource_TerminateVout
(
p_resource
);
}
src/libvlccore.sym
View file @
b1ff0c7e
...
...
@@ -220,6 +220,7 @@ input_resource_Terminate
input_resource_GetAout
input_resource_HoldAout
input_resource_PutAout
input_resource_ResetAout
input_Start
input_Stop
input_vaControl
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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