Changeset 115d0547f7176a77a18564e0f901e4734becba80

Show
Ignore:
Timestamp:
15/07/08 13:21:24 (5 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1216120884 +0200
git-parent:

[7a4fd6378700e37ce0972ed8a70a31424c96e589]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1216120043 +0200
Message:

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.".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/playlist/services_discovery.c

    r57c3ecd r115d054  
    307307        char * psz = services_discovery_GetLocalizedName( p_sd ); 
    308308        assert( psz ); 
     309        PL_LOCK; 
    309310        playlist_NodesPairCreate( p_playlist, psz, 
    310311                &p_cat, &p_one, false ); 
     312        PL_UNLOCK; 
    311313        free( psz ); 
    312314