Changeset 2606ef55873bcd2b1366c161b97d8d693facd26a

Show
Ignore:
Timestamp:
05/31/08 18:01:04 (3 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1212249664 +0300
git-parent:

[a3069143195fc51aecced37fef9725c0f8acb9dd]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1212247734 +0300
Message:

Do not use b_die directly, and simplify

Files:

Legend:

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

    r21702e2 r2606ef5  
    488488    while( vlc_object_alive( p_obj ) ) 
    489489    { 
    490         while( p_obj->i_waiting == 0 ) 
    491         { 
    492             if( vlc_object_wait( p_obj ) || p_playlist->b_die ) 
    493             { 
    494                 vlc_object_unlock( p_obj ); 
    495                 return; 
    496             } 
     490        if( p_obj->i_waiting == 0 ) 
     491        { 
     492            vlc_object_wait( p_obj ); 
     493            continue; 
    497494        } 
    498495 
     
    580577    while( vlc_object_alive( p_obj ) ) 
    581578    { 
    582         while( p_obj->i_waiting == 0 ) 
    583         { 
    584             if( vlc_object_wait( p_obj ) || p_playlist->b_die ) 
    585             { 
    586                 vlc_mutex_unlock( &p_obj->object_lock ); 
    587                 return; 
    588             } 
     579        if( p_obj->i_waiting == 0 ) 
     580        { 
     581            vlc_object_wait( p_obj ); 
     582            continue; 
    589583        } 
    590584