]> git.sesse.net Git - vlc/blobdiff - include/vlc_playlist.h
Don't loop continuously the playlist thread, use cond.
[vlc] / include / vlc_playlist.h
index ec33ee3583d9bfbd491bc9c6fe78f50f92458324..9acba2652daafe214723738cb4d5cb92bb1f1ad9 100644 (file)
@@ -137,8 +137,8 @@ struct playlist_t
                                      * with the current item */
     int                   i_sort; /**< Last sorting applied to the playlist */
     int                   i_order; /**< Last ordering applied to the playlist */
-    mtime_t               i_vout_destroyed_date;
-    mtime_t               i_sout_destroyed_date;
+    mtime_t               gc_date;
+    vlc_bool_t            b_cant_sleep;
     playlist_preparse_t  *p_preparse; /**< Preparser object */
     playlist_secondary_preparse_t *p_secondary_preparse;/**< Preparser object */
 
@@ -433,6 +433,14 @@ static inline vlc_bool_t playlist_IsEmpty( playlist_t * p_playlist )
     return( b_empty );
 }
 
+/** Ask the playlist to do some work */
+static inline void playlist_Signal( playlist_t *p_playlist )
+{
+    PL_LOCK;
+    vlc_cond_signal( &p_playlist->object_wait );
+    PL_UNLOCK;
+}
+
 /**
  * @}
  */