diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp index 23329a0f4f..c517b68646 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp @@ -58,7 +58,7 @@ #include #ifdef HAVE_WINMM -#include +#include #endif GST_DEBUG_CATEGORY_EXTERN (gst_d3d11_decoder_debug); diff --git a/subprojects/gst-plugins-bad/sys/d3d11/meson.build b/subprojects/gst-plugins-bad/sys/d3d11/meson.build index 11306f1fb2..36a8d43f7e 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/meson.build +++ b/subprojects/gst-plugins-bad/sys/d3d11/meson.build @@ -66,7 +66,7 @@ if d3d11_winapi_desktop 'gstd3d11screencapturesrc.cpp'] # multimedia clock is desktop only API - if winmm_lib.found() and cc.has_header('timeapi.h') + if winmm_lib.found() and cc.has_header('mmsystem.h') extra_args += ['-DHAVE_WINMM'] extra_dep += [winmm_lib] endif diff --git a/subprojects/gst-plugins-base/tools/gst-play.c b/subprojects/gst-plugins-base/tools/gst-play.c index d8702b957a..6d6da71b1c 100644 --- a/subprojects/gst-plugins-base/tools/gst-play.c +++ b/subprojects/gst-plugins-base/tools/gst-play.c @@ -42,7 +42,7 @@ #ifdef HAVE_WINMM #define WIN32_LEAN_AND_MEAN #include -#include +#include #endif #include "gst-play-kb.h" diff --git a/subprojects/gst-plugins-base/tools/meson.build b/subprojects/gst-plugins-base/tools/meson.build index f96d0601b3..ed180f8de5 100644 --- a/subprojects/gst-plugins-base/tools/meson.build +++ b/subprojects/gst-plugins-base/tools/meson.build @@ -18,7 +18,7 @@ if host_system == 'windows' if not building_for_uwp winmm_lib = cc.find_library('winmm', required: false) - if winmm_lib.found() and cc.has_header('timeapi.h') + if winmm_lib.found() and cc.has_header('mmsystem.h') extra_args += ['-DHAVE_WINMM'] extra_deps += [winmm_lib] endif diff --git a/subprojects/gstreamer/tools/gst-launch.c b/subprojects/gstreamer/tools/gst-launch.c index 2a3bf4bc7b..16759e68de 100644 --- a/subprojects/gstreamer/tools/gst-launch.c +++ b/subprojects/gstreamer/tools/gst-launch.c @@ -47,7 +47,7 @@ #include /* for LC_ALL */ #include "tools.h" #ifdef HAVE_WINMM -#include +#include #endif extern volatile gboolean glib_on_error_halt; diff --git a/subprojects/gstreamer/tools/meson.build b/subprojects/gstreamer/tools/meson.build index ad2f5d3a7c..f51892c4cc 100644 --- a/subprojects/gstreamer/tools/meson.build +++ b/subprojects/gstreamer/tools/meson.build @@ -10,7 +10,7 @@ extra_launch_arg = [] if gst_parse if host_system == 'windows' and not building_for_uwp winmm_lib = cc.find_library('winmm', required: false) - if winmm_lib.found() and cc.has_header('timeapi.h') + if winmm_lib.found() and cc.has_header('mmsystem.h') extra_launch_dep += [winmm_lib] extra_launch_arg += ['-DHAVE_WINMM'] endif