Commit 115d0547 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

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.".
parent 7a4fd637
...@@ -306,8 +306,10 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modu ...@@ -306,8 +306,10 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modu
char * psz = services_discovery_GetLocalizedName( p_sd ); char * psz = services_discovery_GetLocalizedName( p_sd );
assert( psz ); assert( psz );
PL_LOCK;
playlist_NodesPairCreate( p_playlist, psz, playlist_NodesPairCreate( p_playlist, psz,
&p_cat, &p_one, false ); &p_cat, &p_one, false );
PL_UNLOCK;
free( psz ); free( psz );
vlc_event_attach( services_discovery_EventManager( p_sd ), vlc_event_attach( services_discovery_EventManager( p_sd ),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment