Added missing lock assert to playlist_CurrentPlayingItem and playlist_Status.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 16 Feb 2009 19:54:18 +0000 (20:54 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 16 Feb 2009 20:13:18 +0000 (21:13 +0100)
src/playlist/engine.c

index 8b8b792..0048033 100644 (file)
@@ -304,11 +304,15 @@ static void VariablesInit( playlist_t *p_playlist )
 
 playlist_item_t * playlist_CurrentPlayingItem( playlist_t * p_playlist )
 {
+    PL_ASSERT_LOCKED;
+
     return pl_priv(p_playlist)->status.p_item;
 }
 
 int playlist_Status( playlist_t * p_playlist )
 {
+    PL_ASSERT_LOCKED;
+
     return pl_priv(p_playlist)->status.i_status;
 }