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.".
char * psz = services_discovery_GetLocalizedName( p_sd );
assert( psz );
char * psz = services_discovery_GetLocalizedName( p_sd );
assert( psz );
playlist_NodesPairCreate( p_playlist, psz,
&p_cat, &p_one, false );
playlist_NodesPairCreate( p_playlist, psz,
&p_cat, &p_one, false );
free( psz );
vlc_event_attach( services_discovery_EventManager( p_sd ),
free( psz );
vlc_event_attach( services_discovery_EventManager( p_sd ),