Changeset 59db278a9360524243ff213b171c4cfcf2c77046
- 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
| r83867e8 |
r59db278 |
|
| 2258 | 2258 | p_ev = (event_thread_t *) vlc_object_create( &demuxer, sizeof( event_thread_t ) ); |
|---|
| 2259 | 2259 | p_ev->p_demux = &demuxer; |
|---|
| | 2260 | p_ev->b_die = VLC_FALSE; |
|---|
| 2260 | 2261 | vlc_mutex_init( p_ev, &p_ev->lock ); |
|---|
| 2261 | 2262 | vlc_thread_create( p_ev, "mkv event thread handler", EventThread, |
|---|
| … | … | |
| 2269 | 2270 | { |
|---|
| 2270 | 2271 | p_ev->b_die = VLC_TRUE; |
|---|
| | 2272 | |
|---|
| | 2273 | vlc_thread_join( p_ev ); |
|---|
| | 2274 | vlc_object_destroy( p_ev ); |
|---|
| | 2275 | |
|---|
| | 2276 | p_ev = NULL; |
|---|
| 2271 | 2277 | |
|---|
| 2272 | 2278 | var_Destroy( p_input, "highlight-mutex" ); |
|---|
| … | … | |
| 2278 | 2284 | var_Destroy( p_input, "color" ); |
|---|
| 2279 | 2285 | var_Destroy( p_input, "menu-contrast" ); |
|---|
| 2280 | | |
|---|
| 2281 | | vlc_thread_join( p_ev ); |
|---|
| 2282 | | vlc_object_destroy( p_ev ); |
|---|
| 2283 | | |
|---|
| 2284 | | p_ev = NULL; |
|---|
| 2285 | 2286 | |
|---|
| 2286 | 2287 | msg_Dbg( &demuxer, "Stopping the UI Hook" ); |
|---|
| … | … | |
| 2485 | 2486 | } |
|---|
| 2486 | 2487 | |
|---|
| 2487 | | if( p_vout == NULL ) |
|---|
| | 2488 | else if( p_vout == NULL ) |
|---|
| 2488 | 2489 | { |
|---|
| 2489 | 2490 | p_vout = (vlc_object_t*) vlc_object_find( p_sys->p_input, VLC_OBJECT_VOUT, |
|---|
| … | … | |
| 2496 | 2497 | } |
|---|
| 2497 | 2498 | |
|---|
| 2498 | | /* Wait a bit */ |
|---|
| | 2499 | /* Wait a bit, 10ms */ |
|---|
| 2499 | 2500 | msleep( 10000 ); |
|---|
| 2500 | 2501 | } |
|---|