amfcodec: Fix for MinGW build
authorSeungha Yang <seungha@centricular.com>
Mon, 11 Apr 2022 16:49:17 +0000 (01:49 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 11 Apr 2022 18:44:40 +0000 (18:44 +0000)
commitad9c4356473edcd17fd90438231007d9f8fcd8d5
tree3c558e8f17d03d2b1c5b1bdc0d66738752d31f9d
parent5a6aff05ecdef1507038997af8610dce8aa323df
amfcodec: Fix for MinGW build

timeapi.h header might not be missing depending on toolchain.
Also do hard meson error if winmm dep is not available but
amfcodec is explicitly enabled.
And fixing various GCC build warning errors.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2155>
subprojects/gst-plugins-bad/sys/amfcodec/gstamfencoder.cpp
subprojects/gst-plugins-bad/sys/amfcodec/gstamfh264enc.cpp
subprojects/gst-plugins-bad/sys/amfcodec/gstamfh265enc.cpp
subprojects/gst-plugins-bad/sys/amfcodec/meson.build