1
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:
Laurent Aimar 2011-05-22 21:49:14 +02:00
parent 482b5490d2
commit 2176bf4234
3 changed files with 14 additions and 0 deletions

View File

@ -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
*

View File

@ -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.

View File

@ -226,6 +226,7 @@ input_SplitMRL
input_Start
input_Stop
input_vaControl
input_Close
intf_Create
intf_Eject
IsUTF8