Changeset 0df3e20904dbea7a6ac711be8b13b998a59de95e
- Timestamp:
- 07/23/04 20:08:58
(4 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1090606138 +0000
- git-parent:
[e14fc1897f10ce1cb506fcadd2ecaaab2e746b5c]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1090606138 +0000
- Message:
* modules/visualization/galaktos/plugin.c: fixed threading issues with opengl.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r40a45dc |
r0df3e20 |
|
| 214 | 214 | p_thread->p_opengl->render.i_height = p_thread->i_width; |
|---|
| 215 | 215 | p_thread->p_opengl->render.i_aspect = VOUT_ASPECT_FACTOR; |
|---|
| | 216 | p_thread->p_opengl->b_scale = VLC_TRUE; |
|---|
| 216 | 217 | |
|---|
| 217 | 218 | p_thread->p_module = |
|---|
| … | … | |
| 258 | 259 | timestart=mdate()/1000; |
|---|
| 259 | 260 | } |
|---|
| 260 | | } |
|---|
| 261 | | |
|---|
| 262 | | /***************************************************************************** |
|---|
| 263 | | * Close: close the plugin |
|---|
| 264 | | *****************************************************************************/ |
|---|
| 265 | | static void Close( vlc_object_t *p_this ) |
|---|
| 266 | | { |
|---|
| 267 | | aout_filter_t *p_filter = (aout_filter_t *)p_this; |
|---|
| 268 | | aout_filter_sys_t *p_sys = p_filter->p_sys; |
|---|
| 269 | | |
|---|
| 270 | | /* Stop galaktos Thread */ |
|---|
| 271 | | p_sys->p_thread->b_die = VLC_TRUE; |
|---|
| 272 | | |
|---|
| 273 | | galaktos_done( p_sys->p_thread ); |
|---|
| 274 | | |
|---|
| 275 | | vlc_thread_join( p_sys->p_thread ); |
|---|
| 276 | 261 | |
|---|
| 277 | 262 | /* Free the openGL provider */ |
|---|
| … | … | |
| 279 | 264 | vlc_object_detach( p_sys->p_thread->p_opengl ); |
|---|
| 280 | 265 | vlc_object_destroy( p_sys->p_thread->p_opengl ); |
|---|
| | 266 | } |
|---|
| | 267 | |
|---|
| | 268 | /***************************************************************************** |
|---|
| | 269 | * Close: close the plugin |
|---|
| | 270 | *****************************************************************************/ |
|---|
| | 271 | static void Close( vlc_object_t *p_this ) |
|---|
| | 272 | { |
|---|
| | 273 | aout_filter_t *p_filter = (aout_filter_t *)p_this; |
|---|
| | 274 | aout_filter_sys_t *p_sys = p_filter->p_sys; |
|---|
| | 275 | |
|---|
| | 276 | /* Stop galaktos Thread */ |
|---|
| | 277 | p_sys->p_thread->b_die = VLC_TRUE; |
|---|
| | 278 | |
|---|
| | 279 | galaktos_done( p_sys->p_thread ); |
|---|
| | 280 | |
|---|
| | 281 | vlc_thread_join( p_sys->p_thread ); |
|---|
| 281 | 282 | |
|---|
| 282 | 283 | /* Free data */ |
|---|
| 283 | 284 | vlc_object_detach( p_sys->p_thread ); |
|---|
| 284 | | |
|---|
| 285 | 285 | vlc_object_destroy( p_sys->p_thread ); |
|---|
| 286 | 286 | |
|---|