Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
eb86cfe7
Commit
eb86cfe7
authored
Jan 14, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DxVA2: fix GetProcAddress usage under UNICODE
parent
265ee192
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+3
-3
No files found.
modules/codec/avcodec/dxva2.c
View file @
eb86cfe7
...
@@ -572,7 +572,7 @@ static int D3dCreateDevice(vlc_va_dxva2_t *va)
...
@@ -572,7 +572,7 @@ static int D3dCreateDevice(vlc_va_dxva2_t *va)
/* */
/* */
LPDIRECT3D9
(
WINAPI
*
Create9
)(
UINT
SDKVersion
);
LPDIRECT3D9
(
WINAPI
*
Create9
)(
UINT
SDKVersion
);
Create9
=
(
void
*
)
GetProcAddress
(
va
->
hd3d9_dll
,
Create9
=
(
void
*
)
GetProcAddress
(
va
->
hd3d9_dll
,
TEXT
(
"Direct3DCreate9"
)
);
"Direct3DCreate9"
);
if
(
!
Create9
)
{
if
(
!
Create9
)
{
msg_Err
(
va
->
log
,
"Cannot locate reference to Direct3DCreate9 ABI in DLL"
);
msg_Err
(
va
->
log
,
"Cannot locate reference to Direct3DCreate9 ABI in DLL"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -679,7 +679,7 @@ static int D3dCreateDeviceManager(vlc_va_dxva2_t *va)
...
@@ -679,7 +679,7 @@ static int D3dCreateDeviceManager(vlc_va_dxva2_t *va)
IDirect3DDeviceManager9
**
);
IDirect3DDeviceManager9
**
);
CreateDeviceManager9
=
CreateDeviceManager9
=
(
void
*
)
GetProcAddress
(
va
->
hdxva2_dll
,
(
void
*
)
GetProcAddress
(
va
->
hdxva2_dll
,
TEXT
(
"DXVA2CreateDirect3DDeviceManager9"
)
);
"DXVA2CreateDirect3DDeviceManager9"
);
if
(
!
CreateDeviceManager9
)
{
if
(
!
CreateDeviceManager9
)
{
msg_Err
(
va
->
log
,
"cannot load function"
);
msg_Err
(
va
->
log
,
"cannot load function"
);
...
@@ -723,7 +723,7 @@ static int DxCreateVideoService(vlc_va_dxva2_t *va)
...
@@ -723,7 +723,7 @@ static int DxCreateVideoService(vlc_va_dxva2_t *va)
void
**
ppService
);
void
**
ppService
);
CreateVideoService
=
CreateVideoService
=
(
void
*
)
GetProcAddress
(
va
->
hdxva2_dll
,
(
void
*
)
GetProcAddress
(
va
->
hdxva2_dll
,
TEXT
(
"DXVA2CreateVideoService"
)
);
"DXVA2CreateVideoService"
);
if
(
!
CreateVideoService
)
{
if
(
!
CreateVideoService
)
{
msg_Err
(
va
->
log
,
"cannot load function"
);
msg_Err
(
va
->
log
,
"cannot load function"
);
...
...
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