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

Thomas Guillem thomas at gllm.fr
Fri Oct 2 16:19:38 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..9a01a806725 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        *libvlc_owner;       /**< LibVLC private data, can only be set
+                                          before events are registered. */
 };
 
 #define INPUT_ITEM_URI_NOP "vlc://nop" /* dummy URI for node/directory items */
-- 
2.28.0



More information about the vlc-devel mailing list