Changeset 0df3e20904dbea7a6ac711be8b13b998a59de95e

Show
Ignore:
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
  • modules/visualization/galaktos/plugin.c

    r40a45dc r0df3e20  
    214214    p_thread->p_opengl->render.i_height = p_thread->i_width; 
    215215    p_thread->p_opengl->render.i_aspect = VOUT_ASPECT_FACTOR; 
     216    p_thread->p_opengl->b_scale = VLC_TRUE; 
    216217 
    217218    p_thread->p_module = 
     
    258259        timestart=mdate()/1000; 
    259260    } 
    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 ); 
    276261 
    277262    /* Free the openGL provider */ 
     
    279264    vlc_object_detach( p_sys->p_thread->p_opengl ); 
    280265    vlc_object_destroy( p_sys->p_thread->p_opengl ); 
     266} 
     267 
     268/***************************************************************************** 
     269 * Close: close the plugin 
     270 *****************************************************************************/ 
     271static 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 ); 
    281282 
    282283    /* Free data */ 
    283284    vlc_object_detach( p_sys->p_thread ); 
    284  
    285285    vlc_object_destroy( p_sys->p_thread ); 
    286286