Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
b1ff0c7e
Commit
b1ff0c7e
authored
Mar 10, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resource: add input_resource_ResetAout()
parent
147ccd1b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
include/vlc_input.h
include/vlc_input.h
+5
-0
src/input/resource.c
src/input/resource.c
+6
-4
src/libvlccore.sym
src/libvlccore.sym
+1
-0
No files found.
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
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