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
e95425cd
Commit
e95425cd
authored
Feb 07, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevice: do not override target Windows version
parent
8b9e6d16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
modules/audio_output/mmdevice.c
modules/audio_output/mmdevice.c
+31
-2
No files found.
modules/audio_output/mmdevice.c
View file @
e95425cd
...
...
@@ -22,8 +22,6 @@
# include <config.h>
#endif
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x600
/* Windows Vista */
#define INITGUID
#define COBJMACROS
#define CONST_VTABLE
...
...
@@ -44,6 +42,37 @@ DEFINE_PROPERTYKEY(PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd,
#include <vlc_modules.h>
#include "audio_output/mmdevice.h"
#if (_WIN32_WINNT < 0x600)
static
VOID
WINAPI
(
*
InitializeConditionVariable
)(
PCONDITION_VARIABLE
);
static
BOOL
WINAPI
(
*
SleepConditionVariableCS
)(
PCONDITION_VARIABLE
,
PCRITICAL_SECTION
,
DWORD
);
static
VOID
WINAPI
(
*
WakeConditionVariable
)(
PCONDITION_VARIABLE
);
#define LOOKUP(s) \
if (((s) = (void *)GetProcAddress(h, #s)) == NULL) return FALSE
BOOL
WINAPI
DllMain
(
HINSTANCE
,
DWORD
,
LPVOID
);
/* avoid warning */
BOOL
WINAPI
DllMain
(
HINSTANCE
dll
,
DWORD
reason
,
LPVOID
reserved
)
{
(
void
)
dll
;
(
void
)
reserved
;
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
{
HANDLE
h
=
GetModuleHandle
(
TEXT
(
"kernel32.dll"
));
if
(
unlikely
(
h
==
NULL
))
return
FALSE
;
LOOKUP
(
InitializeConditionVariable
);
LOOKUP
(
SleepConditionVariableCS
);
LOOKUP
(
WakeConditionVariable
);
break
;
}
}
return
TRUE
;
}
#endif
DEFINE_GUID
(
GUID_VLC_AUD_OUT
,
0x4533f59d
,
0x59ee
,
0x00c6
,
0xad
,
0xb2
,
0xc6
,
0x8b
,
0x50
,
0x1a
,
0x66
,
0x55
);
...
...
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