mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-27 04:21:53 +02:00
Added input_Close() helper.
This commit is contained in:
parent
482b5490d2
commit
2176bf4234
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user