[vlc-commits] pl_Get(): remove VLC_USED qualifier

Rémi Denis-Courmont git at videolan.org
Sun Dec 9 21:27:08 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec  9 22:25:22 2012 +0200| [6f23d1879e83b0f60a8ee6acab328111b9f15b55] | committer: Rémi Denis-Courmont

pl_Get(): remove VLC_USED qualifier

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f23d1879e83b0f60a8ee6acab328111b9f15b55
---

 include/vlc_playlist.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index 5f58bfd..89b2edf 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -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 */



More information about the vlc-commits mailing list