Commit 2176bf42 authored by Laurent Aimar's avatar Laurent Aimar

Added input_Close() helper.

parent 482b5490
......@@ -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_Close( input_thread_t * );
/**
* Get the input item for an input thread
*
......
......@@ -250,6 +250,17 @@ void input_Stop( input_thread_t *p_input, bool b_abort )
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
* FIXME it does not increase ref count of the item.
......
......@@ -226,6 +226,7 @@ input_SplitMRL
input_Start
input_Stop
input_vaControl
input_Close
intf_Create
intf_Eject
IsUTF8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment