Changeset 348f966219df7389494a915cc2736df172be47c0

Show
Ignore:
Timestamp:
05/19/02 00:41:43 (6 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1021761703 +0000
git-parent:

[c673b2b97bfc6bc0ad2b7e679fde9d99a90cb1d2]

git-author:
Gildas Bazin <gbazin@videolan.org> 1021761703 +0000
Message:

* updated INSTALL.win32
* a little bit of clean-up in the directx video output plugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • INSTALL.win32

    ra48441c r348f966  
    5454 
    5555http://www.mingw.org/download.shtml 
    56 http://prdownloads.sourceforge.net/mingw/MSYS-1.0.7-i686-2002.04.24-1.exe 
     56http://prdownloads.sourceforge.net/mingw/MSYS-1.0.7-i686-2.exe 
    5757http://prdownloads.sourceforge.net/mingw/MinGW-1.1.tar.gz 
    5858 
     
    8282 
    8383  make distclean ; \ 
    84   ./configure --host=i586-mingw32msvc --target=i586-mingw32msvc \ 
    85   --build=i386-linux \ 
     84  CC=i586-mingw32msvc-gcc \ 
     85  ./configure --host=i586-mingw32msvc --build=i386-linux \ 
    8686  --with-gtk-config-path=/usr/local/gtk-win32/bin \ 
    8787  --with-sdl-config-path=/usr/local/SDL-1.2.3-win32/i386-mingw32msvc/bin \ 
     
    9292www.videolan.org, you have to use something along those lines: 
    9393 
    94   CC=/usr/local/cross-tools/bin/i586-mingw32msvc-gcc \ 
     94  CC=i586-mingw32msvc-gcc \ 
    9595  PATH=/usr/local/cross-tools/bin:$PATH \ 
    96   ./configure --host=i586-mingw32msvc --target=i586-mingw32msvc \ 
    97   --build=i386-linux \ 
     96  ./configure --host=i586-mingw32msvc --build=i386-linux \ 
    9897  --with-gtk-config-path=/usr/local/gtk-win32/bin \ 
    9998  --with-sdl-config-path=/usr/local/SDL-1.2.3-win32/i386-mingw32msvc/bin \ 
  • plugins/directx/vout_directx.c

    r885583c r348f966  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: vout_directx.c,v 1.34 2002/05/18 15:34:04 gbazin Exp $ 
     5 * $Id: vout_directx.c,v 1.35 2002/05/18 22:41:43 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    180180    intf_WarnMsg( 3, "vout: vout_Create DirectXEventThread running" ); 
    181181 
    182  
    183182    /* Initialise DirectDraw */ 
    184183    if( DirectXInitDDraw( p_vout ) ) 
    185184    { 
    186185        intf_ErrMsg( "vout error: can't initialise DirectDraw" ); 
    187  
    188         /* Kill DirectXEventThread */ 
    189         p_vout->p_sys->b_event_thread_die = 1; 
    190         /* we need to be sure DirectXEventThread won't stay stuck in 
    191          * GetMessage, so we send a fake message */ 
    192         PostMessage( p_vout->p_sys->hwnd, WM_NULL, 0, 0); 
    193         vlc_thread_join( p_vout->p_sys->event_thread_id ); 
    194  
     186        vout_Destroy( p_vout ); 
    195187        return ( 1 ); 
    196188    } 
     
    201193        intf_ErrMsg( "vout error: can't initialise DirectDraw" ); 
    202194        DirectXCloseDDraw( p_vout ); 
    203  
    204         /* Kill DirectXEventThread */ 
    205         p_vout->p_sys->b_event_thread_die = 1; 
    206         /* we need to be sure DirectXEventThread won't stay stuck in 
    207          * GetMessage, so we send a fake message */ 
    208         PostMessage( p_vout->p_sys->hwnd, WM_NULL, 0, 0); 
    209         vlc_thread_join( p_vout->p_sys->event_thread_id ); 
    210  
     195        vout_Destroy( p_vout ); 
    211196        return ( 1 ); 
    212197    } 
     
    273258 
    274259    /* Kill DirectXEventThread */ 
     260    vlc_mutex_lock( &p_vout->p_sys->event_thread_lock ); 
    275261    p_vout->p_sys->b_event_thread_die = 1; 
     262 
    276263    /* we need to be sure DirectXEventThread won't stay stuck in GetMessage, 
    277264     * so we send a fake message */ 
    278     if( p_vout->p_sys->i_event_thread_status == THREAD_READY && 
    279         p_vout->p_sys->hwnd ) 
    280     { 
     265    if( p_vout->p_sys->hwnd ) 
    281266        PostMessage( p_vout->p_sys->hwnd, WM_NULL, 0, 0); 
    282         vlc_thread_join( p_vout->p_sys->event_thread_id ); 
    283     } 
     267 
     268    vlc_mutex_unlock( &p_vout->p_sys->event_thread_lock ); 
     269    vlc_thread_join( p_vout->p_sys->event_thread_id ); 
    284270 
    285271    if( p_vout->p_sys != NULL ) 
  • plugins/directx/vout_events.c

    r885583c r348f966  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: vout_events.c,v 1.17 2002/05/18 15:34:04 gbazin Exp $ 
     5 * $Id: vout_events.c,v 1.18 2002/05/18 22:41:43 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    143143            case VK_F12: 
    144144                /* exit application */ 
    145                 p_main->p_intf->b_die = p_vout->p_sys->b_event_thread_die = 1; 
     145                p_main->p_intf->b_die = 1; 
    146146                break; 
    147147            } 
     
    155155            case 'Q': 
    156156                /* exit application */ 
    157                 p_main->p_intf->b_die = p_vout->p_sys->b_event_thread_die = 1; 
     157                p_main->p_intf->b_die = 1; 
    158158                break; 
    159159 
     
    380380{ 
    381381    intf_WarnMsg( 3, "vout: DirectXCloseWindow" ); 
     382 
     383    vlc_mutex_lock( &p_vout->p_sys->event_thread_lock ); 
     384 
    382385    if( p_vout->p_sys->hwnd != NULL ) 
    383386    { 
     
    385388        p_vout->p_sys->hwnd = NULL; 
    386389    } 
     390 
     391    p_vout->p_sys->i_event_thread_status = THREAD_OVER; 
     392 
     393    vlc_mutex_unlock( &p_vout->p_sys->event_thread_lock ); 
    387394 
    388395    /* We don't unregister the Window Class because it could lead to race 
     
    528535        intf_WarnMsg( 4, "vout: WinProc WM_CLOSE" ); 
    529536        /* exit application */ 
    530         p_vout = (vout_thread_t *)GetWindowLong( hwnd, GWL_USERDATA ); 
    531         p_main->p_intf->b_die = p_vout->p_sys->b_event_thread_die = 1; 
     537        p_main->p_intf->b_die = 1; 
    532538        return 0; 
    533539        break;