mirror of https://code.videolan.org/videolan/vlc
input: remove input_Read
This commit is contained in:
parent
1754d0d7fe
commit
48d629dbf6
|
@ -140,32 +140,6 @@ input_thread_t *input_Create( vlc_object_t *p_parent,
|
|||
INPUT_CREATE_OPTION_NONE, p_resource, p_renderer );
|
||||
}
|
||||
|
||||
#undef input_Read
|
||||
/**
|
||||
* Initialize an input thread and run it until it stops by itself.
|
||||
*
|
||||
* \param p_parent a vlc_object
|
||||
* \param p_item an input item
|
||||
* \return an error code, VLC_SUCCESS on success
|
||||
*/
|
||||
int input_Read( vlc_object_t *p_parent, input_item_t *p_item,
|
||||
input_thread_events_cb events_cb, void *events_data )
|
||||
{
|
||||
input_thread_t *p_input = Create( p_parent, events_cb, events_data, p_item,
|
||||
INPUT_CREATE_OPTION_NONE, NULL, NULL );
|
||||
if( !p_input )
|
||||
return VLC_EGENERIC;
|
||||
|
||||
if( !Init( p_input ) )
|
||||
{
|
||||
MainLoop( p_input, false );
|
||||
End( p_input );
|
||||
}
|
||||
|
||||
input_Close(p_input);
|
||||
return VLC_SUCCESS;
|
||||
}
|
||||
|
||||
input_thread_t *input_CreatePreparser( vlc_object_t *parent,
|
||||
input_thread_events_cb events_cb,
|
||||
void *events_data, input_item_t *item )
|
||||
|
|
|
@ -365,10 +365,6 @@ int input_Start( input_thread_t * );
|
|||
|
||||
void input_Stop( input_thread_t * );
|
||||
|
||||
int input_Read( vlc_object_t *, input_item_t *,
|
||||
input_thread_events_cb, void * );
|
||||
#define input_Read(a,b,c,d) input_Read(VLC_OBJECT(a),b,c,d)
|
||||
|
||||
void input_Close( input_thread_t * );
|
||||
|
||||
void input_SetTime( input_thread_t *, vlc_tick_t i_time, bool b_fast );
|
||||
|
|
Loading…
Reference in New Issue