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
2176bf42
Commit
2176bf42
authored
May 22, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added input_Close() helper.
parent
482b5490
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
include/vlc_input.h
include/vlc_input.h
+2
-0
src/input/input.c
src/input/input.c
+11
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
No files found.
include/vlc_input.h
View file @
2176bf42
...
@@ -543,6 +543,8 @@ VLC_API int input_vaControl( input_thread_t *, int i_query, va_list );
...
@@ -543,6 +543,8 @@ VLC_API int input_vaControl( input_thread_t *, int i_query, va_list );
VLC_API
int
input_Control
(
input_thread_t
*
,
int
i_query
,
...
);
VLC_API
int
input_Control
(
input_thread_t
*
,
int
i_query
,
...
);
VLC_API
int
input_Close
(
input_thread_t
*
);
/**
/**
* Get the input item for an input thread
* Get the input item for an input thread
*
*
...
...
src/input/input.c
View file @
2176bf42
...
@@ -250,6 +250,17 @@ void input_Stop( input_thread_t *p_input, bool b_abort )
...
@@ -250,6 +250,17 @@ void input_Stop( input_thread_t *p_input, bool b_abort )
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_DIE
,
NULL
);
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_DIE
,
NULL
);
}
}
/**
* Close an input
*
* It does not call input_Stop itself.
*/
int
input_Close
(
input_thread_t
*
p_input
)
{
vlc_thread_join
(
p_input
);
vlc_object_release
(
p_input
);
}
/**
/**
* Get the item from an input thread
* Get the item from an input thread
* FIXME it does not increase ref count of the item.
* FIXME it does not increase ref count of the item.
...
...
src/libvlccore.sym
View file @
2176bf42
...
@@ -226,6 +226,7 @@ input_SplitMRL
...
@@ -226,6 +226,7 @@ input_SplitMRL
input_Start
input_Start
input_Stop
input_Stop
input_vaControl
input_vaControl
input_Close
intf_Create
intf_Create
intf_Eject
intf_Eject
IsUTF8
IsUTF8
...
...
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