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
f379cff8
Commit
f379cff8
authored
Jan 24, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a input_ressource_HasVout.
It can only be used on detached ressource to ensure the value validity.
parent
062c8ac4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
src/input/input_interface.h
src/input/input_interface.h
+6
-4
src/input/ressource.c
src/input/ressource.c
+10
-0
No files found.
src/input/input_interface.h
View file @
f379cff8
...
...
@@ -54,18 +54,20 @@ void input_ressource_Delete( input_ressource_t * );
/**
* This function deletes the current sout in the ressources.
*
* It can only be called on detached ressources.
*/
void
input_ressource_TerminateSout
(
input_ressource_t
*
p_ressource
);
/**
* This function deletes the current vout in the ressources.
*
* It can only be called on detached ressources.
*/
void
input_ressource_TerminateVout
(
input_ressource_t
*
p_ressource
);
/**
* This function return true if there is at least one vout in the ressources.
*
* It can only be called on detached ressources.
*/
bool
input_ressource_HasVout
(
input_ressource_t
*
p_ressource
);
/* input.c */
#define input_CreateThreadExtended(a,b,c,d) __input_CreateThreadExtended(VLC_OBJECT(a),b,c,d)
...
...
src/input/ressource.c
View file @
f379cff8
...
...
@@ -339,6 +339,7 @@ static aout_instance_t *HoldAout( input_ressource_t *p_ressource )
return
p_aout
;
}
/* */
input_ressource_t
*
input_ressource_New
(
void
)
{
...
...
@@ -406,6 +407,15 @@ void input_ressource_TerminateVout( input_ressource_t *p_ressource )
{
input_ressource_RequestVout
(
p_ressource
,
NULL
,
NULL
);
}
bool
input_ressource_HasVout
(
input_ressource_t
*
p_ressource
)
{
vlc_mutex_lock
(
&
p_ressource
->
lock
);
assert
(
!
p_ressource
->
p_input
);
const
bool
b_vout
=
p_ressource
->
p_vout_free
!=
NULL
;
vlc_mutex_unlock
(
&
p_ressource
->
lock
);
return
b_vout
;
}
/* */
aout_instance_t
*
input_ressource_RequestAout
(
input_ressource_t
*
p_ressource
,
aout_instance_t
*
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