]> git.sesse.net Git - vlc/commitdiff
pl_Get(): remove VLC_USED qualifier
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 9 Dec 2012 20:25:22 +0000 (22:25 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 9 Dec 2012 20:25:22 +0000 (22:25 +0200)
pl_Get() does not create a reference to the playlist, so nothing is
leaked if the result is ignored. Calling pl_Get() ensures that the
playlist has been created.

include/vlc_playlist.h

index 5f58bfd8a49bd32d5a4b46251e5ef04f40289bd1..89b2edf5460fd4a762a25e9e54f30b172e126e8e 100644 (file)
@@ -251,7 +251,7 @@ enum pl_locked_state
 #define PL_UNLOCK playlist_Unlock( p_playlist )
 #define PL_ASSERT_LOCKED playlist_AssertLocked( p_playlist )
 
-VLC_API playlist_t * pl_Get( vlc_object_t * ) VLC_USED;
+VLC_API playlist_t * pl_Get( vlc_object_t * );
 #define pl_Get( a ) pl_Get( VLC_OBJECT(a) )
 
 /* Playlist control */