[vlc-commits] input_item: add a owner placeholder

Thomas Guillem git at videolan.org
Mon Oct 5 09:19:53 CEST 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Sep 18 14:29:31 2020 +0200| [094a092e22e38895f7842433967318c3886b5c22] | committer: Thomas Guillem

input_item: add a owner placeholder

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=094a092e22e38895f7842433967318c3886b5c22
---

 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 8e5ffc98ec..9a01a80672 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 */



More information about the vlc-commits mailing list