Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
cfbe5077
Commit
cfbe5077
authored
Dec 23, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/directx/*: fixed strange race condition.
parent
53c8ef35
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
+19
-14
modules/video_output/directx/directx.c
modules/video_output/directx/directx.c
+3
-11
modules/video_output/directx/events.c
modules/video_output/directx/events.c
+14
-2
modules/video_output/directx/vout.h
modules/video_output/directx/vout.h
+2
-1
No files found.
modules/video_output/directx/directx.c
View file @
cfbe5077
...
...
@@ -2,7 +2,7 @@
* vout.c: Windows DirectX video output display method
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: directx.c,v 1.
29 2003/12/15 20:21:45
gbazin Exp $
* $Id: directx.c,v 1.
30 2003/12/23 02:11:27
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -352,16 +352,8 @@ static int Init( vout_thread_t *p_vout )
}
/* Change the window title bar text */
if
(
p_vout
->
p_sys
->
hparent
)
;
/* Do nothing */
else
if
(
p_vout
->
p_sys
->
b_using_overlay
)
SetWindowText
(
p_vout
->
p_sys
->
hwnd
,
VOUT_TITLE
" (hardware YUV overlay DirectX output)"
);
else
if
(
p_vout
->
p_sys
->
b_hw_yuv
)
SetWindowText
(
p_vout
->
p_sys
->
hwnd
,
VOUT_TITLE
" (hardware YUV DirectX output)"
);
else
SetWindowText
(
p_vout
->
p_sys
->
hwnd
,
VOUT_TITLE
" (software RGB DirectX output)"
);
if
(
p_vout
->
p_sys
->
hparent
)
;
/* Do nothing */
else
PostMessage
(
p_vout
->
p_sys
->
hwnd
,
WM_VLC_CHANGE_TEXT
,
0
,
0
);
return
VLC_SUCCESS
;
}
...
...
modules/video_output/directx/events.c
View file @
cfbe5077
...
...
@@ -2,7 +2,7 @@
* events.c: Windows DirectX video output events handler
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: events.c,v 1.3
3 2003/12/16 22:10:56
gbazin Exp $
* $Id: events.c,v 1.3
4 2003/12/23 02:11:27
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -94,7 +94,7 @@ void DirectXEventThread( event_thread_t *p_event )
p_event
->
b_dead
=
VLC_TRUE
;
}
/*
s
ignal the creation of the window */
/*
S
ignal the creation of the window */
vlc_thread_ready
(
p_event
);
/* Main loop */
...
...
@@ -231,6 +231,17 @@ void DirectXEventThread( event_thread_t *p_event )
}
break
;
case
WM_VLC_CHANGE_TEXT
:
if
(
p_event
->
p_vout
->
p_sys
->
b_using_overlay
)
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hwnd
,
VOUT_TITLE
" (hardware YUV overlay DirectX output)"
);
else
if
(
p_event
->
p_vout
->
p_sys
->
b_hw_yuv
)
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hwnd
,
VOUT_TITLE
" (hardware YUV DirectX output)"
);
else
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hwnd
,
VOUT_TITLE
" (software RGB DirectX output)"
);
break
;
default:
/* Messages we don't handle directly are dispatched to the
* window procedure */
...
...
@@ -661,6 +672,7 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message,
}
else
{
msg_Warn
(
p_vout
,
"Created video sub-window"
);
SetWindowLong
(
p_vout
->
p_sys
->
hvideownd
,
GWL_WNDPROC
,
(
LONG
)
DirectXVideoEventProc
);
}
...
...
modules/video_output/directx/vout.h
View file @
cfbe5077
...
...
@@ -2,7 +2,7 @@
* vout.h: Windows DirectX video output header file
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vout.h,v 1.1
0 2003/12/11 23:12:46
gbazin Exp $
* $Id: vout.h,v 1.1
1 2003/12/23 02:11:27
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -126,5 +126,6 @@ void DirectXUpdateRects ( vout_thread_t *p_vout, vlc_bool_t b_force );
#define WM_VLC_HIDE_MOUSE WM_APP
#define WM_VLC_CREATE_VIDEO_WIN WM_APP + 1
#define WM_VLC_DESTROY_VIDEO_WIN WM_APP + 2
#define WM_VLC_CHANGE_TEXT WM_APP + 3
#define IDM_TOGGLE_ON_TOP WM_USER + 1
#define DX_POSITION_CHANGE 0x1000
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment