]> git.sesse.net Git - vlc/blobdiff - src/input/vlm_internal.h
VLM : add a dedicated mutex for the manage thread. We must not del callback while...
[vlc] / src / input / vlm_internal.h
index 670f5a16c828342c3d4e02ff95ec357b7e11867d..e7ef8235db9b7c2f4bd6ea8c853e48d30c9b2ad6 100644 (file)
@@ -29,6 +29,7 @@
 #define _VLM_INTERNAL_H 1
 
 #include <vlc_vlm.h>
+#include "input_interface.h"
 
 /* Private */
 typedef struct
@@ -41,9 +42,9 @@ typedef struct
 
     bool      b_sout_keep;
 
-    input_item_t    *p_item;
-    input_thread_t  *p_input;
-    sout_instance_t *p_sout;
+    input_item_t      *p_item;
+    input_thread_t    *p_input;
+    input_resource_t *p_input_resource;
 
 } vlm_media_instance_sys_t;
 
@@ -89,7 +90,10 @@ struct vlm_t
 
     vlc_mutex_t  lock;
     vlc_thread_t thread;
-
+    vlc_mutex_t  lock_manage;
+    vlc_cond_t   wait_manage;
+    /* tell vlm thread there is work to do */
+    bool         input_state_changed;
     /* */
     int64_t        i_id;