]> git.sesse.net Git - vlc/blobdiff - src/control/media_internal.h
libvlc: Export libvlc_media_parse() and libvlc_media_parse_async().
[vlc] / src / control / media_internal.h
index c8f057fb7661427a6f43c3bca62f6b8af27478cb..cd1c42aacfcd161c9a3a58282e5ed67b88e72341 100644 (file)
 struct libvlc_media_t
 {
     libvlc_event_manager_t * p_event_manager;
-    int                b_preparsed;
     input_item_t      *p_input_item;
     int                i_refcount;
     libvlc_instance_t *p_libvlc_instance;
     libvlc_state_t     state;
     VLC_FORWARD_DECLARE_OBJECT(libvlc_media_list_t*) p_subitems; /* A media descriptor can have Sub items. This is the only dependancy we really have on media_list */
     void *p_user_data;
+
+    vlc_cond_t parsed_cond;
+    vlc_mutex_t parsed_lock;
+
+    bool is_parsed;
+    bool has_asked_preparse;
     bool has_asked_art;
 };