[vlc-commits] lib: use vlc_mutex_assert()
Rémi Denis-Courmont
git at videolan.org
Sun Oct 21 13:01:35 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 20 23:30:14 2018 +0300| [b974c185df652abf7f05d6a58be73fc5a2a0489a] | committer: Rémi Denis-Courmont
lib: use vlc_mutex_assert()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b974c185df652abf7f05d6a58be73fc5a2a0489a
---
lib/media_list_player.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/lib/media_list_player.c b/lib/media_list_player.c
index 7f4d427f63..114da9c680 100644
--- a/lib/media_list_player.c
+++ b/lib/media_list_player.c
@@ -74,12 +74,6 @@ struct libvlc_media_list_player_t
vlc_thread_t thread;
};
-/* This is not yet exported by libvlccore */
-static inline void vlc_assert_locked(vlc_mutex_t *mutex)
-{
- VLC_UNUSED(mutex);
-}
-
/*
* Forward declaration
*/
@@ -113,7 +107,8 @@ static inline void unlock(libvlc_media_list_player_t * p_mlp)
static inline void assert_locked(libvlc_media_list_player_t * p_mlp)
{
- vlc_assert_locked(&p_mlp->mp_callback_lock);
+ vlc_mutex_assert(&p_mlp->mp_callback_lock);
+ (void) p_mlp;
}
static inline libvlc_event_manager_t * mlist_em(libvlc_media_list_player_t * p_mlp)
More information about the vlc-commits
mailing list