[vlc-devel] [RFC PATCH 5/8] core: Expose input_CreatePreparser

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Jun 25 10:10:03 CEST 2018


---
 include/vlc_input.h         | 14 ++++++++++++++
 src/input/input_interface.h | 13 -------------
 src/libvlccore.sym          |  1 +
 3 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index f892a10d5a..de5df142db 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -501,6 +501,20 @@ VLC_API input_thread_t * input_Create( vlc_object_t *p_parent, input_item_t *,
                                        vlc_renderer_item_t* p_renderer ) VLC_USED;
 #define input_Create(a,b,c,d,e) input_Create(VLC_OBJECT(a),b,c,d,e)
 
+
+/**
+ * Creates an item preparser.
+ *
+ * Creates an input thread to preparse an item. The input needs to be started
+ * with input_Start() afterwards.
+ *
+ * @param obj parent object
+ * @param item input item to preparse
+ * @return an input thread or NULL on error
+ */
+VLC_API input_thread_t *input_CreatePreparser(vlc_object_t *obj, input_item_t *item)
+VLC_USED;
+
 VLC_API int input_Start( input_thread_t * );
 
 VLC_API void input_Stop( input_thread_t * );
diff --git a/src/input/input_interface.h b/src/input/input_interface.h
index c89d2a7340..779798d7f9 100644
--- a/src/input/input_interface.h
+++ b/src/input/input_interface.h
@@ -40,19 +40,6 @@ void input_item_SetEpgEvent( input_item_t *p_item, const vlc_epg_event_t *p_epg_
 void input_item_SetEpgTime( input_item_t *, int64_t );
 void input_item_SetEpgOffline( input_item_t * );
 
-/**
- * Creates an item preparser.
- *
- * Creates an input thread to preparse an item. The input needs to be started
- * with input_Start() afterwards.
- *
- * @param obj parent object
- * @param item input item to preparse
- * @return an input thread or NULL on error
- */
-input_thread_t *input_CreatePreparser(vlc_object_t *obj, input_item_t *item)
-VLC_USED;
-
 /**
  * This function deletes the current sout in the resources.
  */
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 0378c96e1b..3959225233 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -152,6 +152,7 @@ InitMD5
 input_Control
 input_Create
 input_CreateFilename
+input_CreatePreparser
 input_DecoderCreate
 input_DecoderDelete
 input_DecoderDecode
-- 
2.18.0



More information about the vlc-devel mailing list