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
9611ebca
Commit
9611ebca
authored
Aug 15, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DxVA2: do not fail without Shell. Close #6322
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
0aa01389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+2
-2
No files found.
modules/codec/avcodec/dxva2.c
View file @
9611ebca
...
...
@@ -606,10 +606,10 @@ static int D3dCreateDevice(vlc_va_dxva2_t *va)
/* Direct3D needs a HWND to create a device, even without using ::Present
this HWND is used to alert Direct3D when there's a change of focus window.
For now, use Get
Shell
Window, as it looks harmless */
For now, use Get
Desktop
Window, as it looks harmless */
LPDIRECT3DDEVICE9
d3ddev
;
if
(
FAILED
(
IDirect3D9_CreateDevice
(
d3dobj
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
Get
Shell
Window
(),
D3DDEVTYPE_HAL
,
Get
Desktop
Window
(),
D3DCREATE_SOFTWARE_VERTEXPROCESSING
|
D3DCREATE_MULTITHREADED
,
d3dpp
,
&
d3ddev
)))
{
...
...
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