[vlc-devel] [PATCH 6/9] core: Expose input_CreatePreparser

Hugo Beauzée-Luyssen hugo at beauzee.fr
Fri Jul 13 17:07:24 CEST 2018


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

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 623fad3aae..73bdc41fd9 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -556,6 +556,22 @@ VLC_API input_thread_t * input_Create( vlc_object_t *p_parent,
                                        vlc_renderer_item_t* p_renderer ) VLC_USED;
 #define input_Create(a,b,c,d,e,f,g) input_Create(VLC_OBJECT(a),b,c,d,e,f,g)
 
+
+/**
+ * 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_thread_events_cb events_cb,
+                                              void *events_data, 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 a2635c429a..779798d7f9 100644
--- a/src/input/input_interface.h
+++ b/src/input/input_interface.h
@@ -40,21 +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_thread_events_cb events_cb,
-                                      void *events_data, 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 aa60639a82..dab796777a 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -153,6 +153,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