Changeset 59db278a9360524243ff213b171c4cfcf2c77046

Show
Ignore:
Timestamp:
05/12/05 18:35:18 (3 years ago)
Author:
Steve Lhomme <robux@videolan.org>
git-committer:
Steve Lhomme <robux@videolan.org> 1115915718 +0000
git-parent:

[d31b60cea8dc9a9f5bb453edbda03c6d5cd8b05a]

git-author:
Steve Lhomme <robux@videolan.org> 1115915718 +0000
Message:

mkv.cpp: thread handling cleaning

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/mkv.cpp

    r83867e8 r59db278  
    22582258        p_ev = (event_thread_t *) vlc_object_create( &demuxer, sizeof( event_thread_t ) ); 
    22592259        p_ev->p_demux = &demuxer; 
     2260        p_ev->b_die = VLC_FALSE; 
    22602261        vlc_mutex_init( p_ev, &p_ev->lock ); 
    22612262        vlc_thread_create( p_ev, "mkv event thread handler", EventThread, 
     
    22692270    { 
    22702271        p_ev->b_die = VLC_TRUE; 
     2272 
     2273        vlc_thread_join( p_ev ); 
     2274        vlc_object_destroy( p_ev ); 
     2275 
     2276        p_ev = NULL; 
    22712277 
    22722278        var_Destroy( p_input, "highlight-mutex" ); 
     
    22782284        var_Destroy( p_input, "color" ); 
    22792285        var_Destroy( p_input, "menu-contrast" ); 
    2280  
    2281         vlc_thread_join( p_ev ); 
    2282         vlc_object_destroy( p_ev ); 
    2283  
    2284         p_ev = NULL; 
    22852286 
    22862287        msg_Dbg( &demuxer, "Stopping the UI Hook" ); 
     
    24852486        } 
    24862487 
    2487         if( p_vout == NULL ) 
     2488        else if( p_vout == NULL ) 
    24882489        { 
    24892490            p_vout = (vlc_object_t*) vlc_object_find( p_sys->p_input, VLC_OBJECT_VOUT, 
     
    24962497        } 
    24972498 
    2498         /* Wait a bit */ 
     2499        /* Wait a bit, 10ms */ 
    24992500        msleep( 10000 ); 
    25002501    }