[vlc-devel] [PATCH 1/2] input_item: add a owner placeholder

Thomas Guillem thomas at gllm.fr
Fri Sep 18 14:29:31 CEST 2020


This will be used by libvlc_media to store the media instance into an
input_item. This will allow to get the media corresponding to an item
when propagating media events.
---
 include/vlc_input_item.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index 8e5ffc98eca..151c90f17dd 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -120,6 +120,9 @@ struct input_item_t
 
     bool        b_preparse_interact; /**< Force interaction with the user when
                                           preparsing.*/
+
+    void        *owner;              /**< Private data that can only be set by
+                                          the owner (one calling New()) */
 };
 
 #define INPUT_ITEM_URI_NOP "vlc://nop" /* dummy URI for node/directory items */
-- 
2.28.0



More information about the vlc-devel mailing list