[vlc-commits] [Git][videolan/vlc][master] player: ensure the player doesn't have any mutex locked on delete

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Wed Oct 13 16:25:13 UTC 2021



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
ef33903e by Steve Lhomme at 2021-10-13T16:11:40+00:00
player: ensure the player doesn't have any mutex locked on delete

This is particularly important as the lock may be recursive.

- - - - -


1 changed file:

- src/player/player.c


Changes:

=====================================
src/player/player.c
=====================================
@@ -1914,6 +1914,8 @@ vlc_player_Delete(vlc_player_t *player)
         vlc_http_cookies_destroy(cookies);
     }
 
+    assert(!vlc_mutex_held(&player->lock));
+
     vlc_object_delete(player);
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ef33903e55c2814c2b48083a5d748df4f7cb1a18

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ef33903e55c2814c2b48083a5d748df4f7cb1a18
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list