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
3071e185
Commit
3071e185
authored
May 28, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
May 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxva2: let the decoder handle the device referencing
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
49e1ba40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
modules/codec/avcodec/directx_va.c
modules/codec/avcodec/directx_va.c
+5
-9
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+6
-0
No files found.
modules/codec/avcodec/directx_va.c
View file @
3071e185
...
...
@@ -423,16 +423,12 @@ int directx_va_Open(vlc_va_t *va, directx_sys_t *dx_sys,
}
msg_Dbg
(
va
,
"DLLs loaded"
);
if
(
dx_sys
->
d3ddev
)
{
msg_Dbg
(
va
,
"Reusing DirectX device"
);
}
else
{
/* */
if
(
dx_sys
->
pf_create_device
(
va
))
{
msg_Err
(
va
,
"Failed to create DirectX device"
);
goto
error
;
}
msg_Dbg
(
va
,
"CreateDevice succeed"
);
/* */
if
(
dx_sys
->
pf_create_device
(
va
))
{
msg_Err
(
va
,
"Failed to create DirectX device"
);
goto
error
;
}
msg_Dbg
(
va
,
"CreateDevice succeed"
);
if
(
dx_sys
->
pf_create_device_manager
(
va
))
{
msg_Err
(
va
,
"D3dCreateDeviceManager failed"
);
...
...
modules/codec/avcodec/dxva2.c
View file @
3071e185
...
...
@@ -315,6 +315,12 @@ static int D3dCreateDevice(vlc_va_t *va)
{
vlc_va_sys_t
*
sys
=
va
->
sys
;
if
(
sys
->
dx_sys
.
d3ddev
)
{
msg_Dbg
(
va
,
"Reusing Direct3D9 device"
);
IDirect3DDevice9_AddRef
(
sys
->
dx_sys
.
d3ddev
);
return
VLC_SUCCESS
;
}
/* */
LPDIRECT3D9
(
WINAPI
*
Create9
)(
UINT
SDKVersion
);
Create9
=
(
void
*
)
GetProcAddress
(
sys
->
hd3d9_dll
,
"Direct3DCreate9"
);
...
...
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