[vlc-commits] input: remove input_Read
Thomas Guillem
git at videolan.org
Mon Jun 3 16:16:49 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun 3 11:34:58 2019 +0200| [48d629dbf6a7cc746b10bf652514b6bd39aeee56] | committer: Thomas Guillem
input: remove input_Read
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=48d629dbf6a7cc746b10bf652514b6bd39aeee56
---
src/input/input.c | 26 --------------------------
src/input/input_internal.h | 4 ----
2 files changed, 30 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 31118f02c5..a6116ab8e7 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -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 )
diff --git a/src/input/input_internal.h b/src/input/input_internal.h
index f565bb309d..a36183ccf2 100644
--- a/src/input/input_internal.h
+++ b/src/input/input_internal.h
@@ -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 );
More information about the vlc-commits
mailing list