Changeset 0717f16a1e2bafc0e7fa196c7c7b238bdfb2ef82

Show
Ignore:
Timestamp:
15/07/08 01:26:04 (5 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1216077964 +0200
git-parent:

[7e063c475582352fe51175275023dfa49e09e5a1]

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

plqylist: Delete current playing item, if qpplicable, inside the PL_LOCK, and at the very end.

Files:

Legend:

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

    r1fac4d7 r0717f16  
    483483#endif 
    484484 
     485    /* Core should have terminated all SDs before the playlist */ 
     486    /* TODO: It fails to do so when not playing anything -- Courmisch */ 
     487    playlist_ServicesDiscoveryKillAll( p_playlist ); 
     488    playlist_MLDump( p_playlist ); 
     489 
     490    vlc_object_kill( p_playlist->p_preparse ); 
     491    vlc_thread_join( p_playlist->p_preparse ); 
     492    vlc_object_kill( p_playlist->p_fetcher ); 
     493    vlc_thread_join( p_playlist->p_fetcher ); 
     494 
     495    PL_LOCK; 
     496 
    485497    if( p_playlist->status.p_node && 
    486498        p_playlist->status.p_node->i_flags & PLAYLIST_REMOVE_FLAG ) 
     
    500512    } 
    501513 
    502     /* Core should have terminated all SDs before the playlist */ 
    503     /* TODO: It fails to do so when not playing anything -- Courmisch */ 
    504     playlist_ServicesDiscoveryKillAll( p_playlist ); 
    505     playlist_MLDump( p_playlist ); 
    506  
    507     vlc_object_kill( p_playlist->p_preparse ); 
    508     vlc_thread_join( p_playlist->p_preparse ); 
    509     vlc_object_kill( p_playlist->p_fetcher ); 
    510     vlc_thread_join( p_playlist->p_fetcher ); 
    511  
    512     PL_LOCK; 
    513514    FOREACH_ARRAY( playlist_item_t *p_del, p_playlist->all_items ) 
    514515        free( p_del->pp_children );