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
d04d1ee3
Commit
d04d1ee3
authored
Nov 21, 2014
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mft: Do not use LoadLibrary when building for Vista and later
parent
7b11525d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/codec/mft.c
modules/codec/mft.c
+7
-0
No files found.
modules/codec/mft.c
View file @
d04d1ee3
...
...
@@ -1088,6 +1088,7 @@ static int FindMFT(decoder_t *p_dec)
static
int
LoadMFTLibrary
(
MFHandle
*
mf
)
{
#if _WINNT_VER < 0x601
mf
->
mfplat_dll
=
LoadLibrary
(
TEXT
(
"mfplat.dll"
));
if
(
!
mf
->
mfplat_dll
)
return
VLC_EGENERIC
;
...
...
@@ -1098,6 +1099,12 @@ static int LoadMFTLibrary(MFHandle *mf)
mf
->
fptr_MFCreateAlignedMemoryBuffer
=
(
void
*
)
GetProcAddress
(
mf
->
mfplat_dll
,
"MFCreateAlignedMemoryBuffer"
);
if
(
!
mf
->
fptr_MFTEnumEx
||
!
mf
->
fptr_MFCreateSample
||
!
mf
->
fptr_MFCreateMemoryBuffer
||
!
mf
->
fptr_MFCreateAlignedMemoryBuffer
)
return
VLC_EGENERIC
;
#else
mf
->
fptr_MFTEnumEx
=
&
MFTEnumEx
;
mf
->
fptr_MFCreateSample
=
&
MFCreateSample
;
mf
->
fptr_MFCreateMemoryBuffer
=
&
MFCreateMemoryBuffer
;
mf
->
fptr_MFCreateAlignedMemoryBuffer
=
&
MFCreateAlignedMemoryBuffer
;
#endif
return
VLC_SUCCESS
;
}
...
...
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