Changeset 348f966219df7389494a915cc2736df172be47c0
- 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
| ra48441c |
r348f966 |
|
| 54 | 54 | |
|---|
| 55 | 55 | http://www.mingw.org/download.shtml |
|---|
| 56 | | http://prdownloads.sourceforge.net/mingw/MSYS-1.0.7-i686-2002.04.24-1.exe |
|---|
| | 56 | http://prdownloads.sourceforge.net/mingw/MSYS-1.0.7-i686-2.exe |
|---|
| 57 | 57 | http://prdownloads.sourceforge.net/mingw/MinGW-1.1.tar.gz |
|---|
| 58 | 58 | |
|---|
| … | … | |
| 82 | 82 | |
|---|
| 83 | 83 | 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 \ |
|---|
| 86 | 86 | --with-gtk-config-path=/usr/local/gtk-win32/bin \ |
|---|
| 87 | 87 | --with-sdl-config-path=/usr/local/SDL-1.2.3-win32/i386-mingw32msvc/bin \ |
|---|
| … | … | |
| 92 | 92 | www.videolan.org, you have to use something along those lines: |
|---|
| 93 | 93 | |
|---|
| 94 | | CC=/usr/local/cross-tools/bin/i586-mingw32msvc-gcc \ |
|---|
| | 94 | CC=i586-mingw32msvc-gcc \ |
|---|
| 95 | 95 | 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 \ |
|---|
| 98 | 97 | --with-gtk-config-path=/usr/local/gtk-win32/bin \ |
|---|
| 99 | 98 | --with-sdl-config-path=/usr/local/SDL-1.2.3-win32/i386-mingw32msvc/bin \ |
|---|
| r885583c |
r348f966 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 180 | 180 | intf_WarnMsg( 3, "vout: vout_Create DirectXEventThread running" ); |
|---|
| 181 | 181 | |
|---|
| 182 | | |
|---|
| 183 | 182 | /* Initialise DirectDraw */ |
|---|
| 184 | 183 | if( DirectXInitDDraw( p_vout ) ) |
|---|
| 185 | 184 | { |
|---|
| 186 | 185 | 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 ); |
|---|
| 195 | 187 | return ( 1 ); |
|---|
| 196 | 188 | } |
|---|
| … | … | |
| 201 | 193 | intf_ErrMsg( "vout error: can't initialise DirectDraw" ); |
|---|
| 202 | 194 | 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 ); |
|---|
| 211 | 196 | return ( 1 ); |
|---|
| 212 | 197 | } |
|---|
| … | … | |
| 273 | 258 | |
|---|
| 274 | 259 | /* Kill DirectXEventThread */ |
|---|
| | 260 | vlc_mutex_lock( &p_vout->p_sys->event_thread_lock ); |
|---|
| 275 | 261 | p_vout->p_sys->b_event_thread_die = 1; |
|---|
| | 262 | |
|---|
| 276 | 263 | /* we need to be sure DirectXEventThread won't stay stuck in GetMessage, |
|---|
| 277 | 264 | * 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 ) |
|---|
| 281 | 266 | 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 ); |
|---|
| 284 | 270 | |
|---|
| 285 | 271 | if( p_vout->p_sys != NULL ) |
|---|
| r885583c |
r348f966 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 143 | 143 | case VK_F12: |
|---|
| 144 | 144 | /* 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; |
|---|
| 146 | 146 | break; |
|---|
| 147 | 147 | } |
|---|
| … | … | |
| 155 | 155 | case 'Q': |
|---|
| 156 | 156 | /* 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; |
|---|
| 158 | 158 | break; |
|---|
| 159 | 159 | |
|---|
| … | … | |
| 380 | 380 | { |
|---|
| 381 | 381 | intf_WarnMsg( 3, "vout: DirectXCloseWindow" ); |
|---|
| | 382 | |
|---|
| | 383 | vlc_mutex_lock( &p_vout->p_sys->event_thread_lock ); |
|---|
| | 384 | |
|---|
| 382 | 385 | if( p_vout->p_sys->hwnd != NULL ) |
|---|
| 383 | 386 | { |
|---|
| … | … | |
| 385 | 388 | p_vout->p_sys->hwnd = NULL; |
|---|
| 386 | 389 | } |
|---|
| | 390 | |
|---|
| | 391 | p_vout->p_sys->i_event_thread_status = THREAD_OVER; |
|---|
| | 392 | |
|---|
| | 393 | vlc_mutex_unlock( &p_vout->p_sys->event_thread_lock ); |
|---|
| 387 | 394 | |
|---|
| 388 | 395 | /* We don't unregister the Window Class because it could lead to race |
|---|
| … | … | |
| 528 | 535 | intf_WarnMsg( 4, "vout: WinProc WM_CLOSE" ); |
|---|
| 529 | 536 | /* 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; |
|---|
| 532 | 538 | return 0; |
|---|
| 533 | 539 | break; |
|---|