gstaudioutilsprivate: Fix gcc 15 compiler error with function pointer
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8904>
This commit is contained in:
parent
a03c4de48f
commit
eeb27f1c71
@ -218,13 +218,16 @@ exit:
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
typedef HANDLE (WINAPI * AvSetMmThreadCharacteristicsPtr) (LPCSTR, LPDWORD);
|
||||||
|
typedef BOOL (WINAPI * AvRevertMmThreadCharacteristicsPtr) (HANDLE);
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
static struct
|
static struct
|
||||||
{
|
{
|
||||||
HMODULE dll;
|
HMODULE dll;
|
||||||
|
|
||||||
FARPROC AvSetMmThreadCharacteristics;
|
AvSetMmThreadCharacteristicsPtr AvSetMmThreadCharacteristics;
|
||||||
FARPROC AvRevertMmThreadCharacteristics;
|
AvRevertMmThreadCharacteristicsPtr AvRevertMmThreadCharacteristics;
|
||||||
} _gst_audio_avrt_tbl = { 0 };
|
} _gst_audio_avrt_tbl = { 0 };
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
#endif
|
#endif
|
||||||
@ -246,6 +249,7 @@ __gst_audio_init_thread_priority (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_gst_audio_avrt_tbl.AvSetMmThreadCharacteristics =
|
_gst_audio_avrt_tbl.AvSetMmThreadCharacteristics =
|
||||||
|
(AvSetMmThreadCharacteristicsPtr)
|
||||||
GetProcAddress (_gst_audio_avrt_tbl.dll,
|
GetProcAddress (_gst_audio_avrt_tbl.dll,
|
||||||
"AvSetMmThreadCharacteristicsA");
|
"AvSetMmThreadCharacteristicsA");
|
||||||
if (!_gst_audio_avrt_tbl.AvSetMmThreadCharacteristics) {
|
if (!_gst_audio_avrt_tbl.AvSetMmThreadCharacteristics) {
|
||||||
@ -255,6 +259,7 @@ __gst_audio_init_thread_priority (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_gst_audio_avrt_tbl.AvRevertMmThreadCharacteristics =
|
_gst_audio_avrt_tbl.AvRevertMmThreadCharacteristics =
|
||||||
|
(AvRevertMmThreadCharacteristicsPtr)
|
||||||
GetProcAddress (_gst_audio_avrt_tbl.dll,
|
GetProcAddress (_gst_audio_avrt_tbl.dll,
|
||||||
"AvRevertMmThreadCharacteristics");
|
"AvRevertMmThreadCharacteristics");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user