From 115d0547f7176a77a18564e0f901e4734becba80 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Tue, 15 Jul 2008 13:07:23 +0200 Subject: [PATCH] services_discovery: playlist_NodesPairCreate needs a lock. Should fix #1708 (Adding a folder in the Mac OS X VLC *media library* result in an assertion failure). Thanks to upcoming commit "playlist: Use PL_ASSERT_LOCKED where the playlist lock should be held.". --- src/playlist/services_discovery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c index a08535287e..84b4dd94a9 100644 --- a/src/playlist/services_discovery.c +++ b/src/playlist/services_discovery.c @@ -306,8 +306,10 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modu char * psz = services_discovery_GetLocalizedName( p_sd ); assert( psz ); + PL_LOCK; playlist_NodesPairCreate( p_playlist, psz, &p_cat, &p_one, false ); + PL_UNLOCK; free( psz ); vlc_event_attach( services_discovery_EventManager( p_sd ), -- 2.39.2