[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] waveout: Fix compile warnings
PulseAudio Marge Bot
gitlab at gitlab.freedesktop.org
Wed Jan 13 03:09:25 UTC 2021
PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio
Commits:
eb1297f1 by Patrick Gaskin at 2021-01-13T03:03:58+00:00
waveout: Fix compile warnings
* Include pulse/util.h for pa_thread_make_realtime.
* Explicitly cast HWAVEOUT to UINT_PTR for waveOutGetDevCaps.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/457>
- - - - -
1 changed file:
- src/modules/module-waveout.c
Changes:
=====================================
src/modules/module-waveout.c
=====================================
@@ -28,6 +28,7 @@
#include <pulse/xmalloc.h>
#include <pulse/timeval.h>
+#include <pulse/util.h>
#include <pulsecore/sink.h>
#include <pulsecore/source.h>
@@ -412,7 +413,7 @@ static void sink_get_volume_cb(pa_sink *s) {
DWORD vol;
pa_volume_t left, right;
- if (waveOutGetDevCaps(u->hwo, &caps, sizeof(caps)) != MMSYSERR_NOERROR)
+ if (waveOutGetDevCaps((UINT_PTR) u->hwo, &caps, sizeof(caps)) != MMSYSERR_NOERROR)
return;
if (!(caps.dwSupport & WAVECAPS_VOLUME))
return;
@@ -440,7 +441,7 @@ static void sink_set_volume_cb(pa_sink *s) {
WAVEOUTCAPS caps;
DWORD vol;
- if (waveOutGetDevCaps(u->hwo, &caps, sizeof(caps)) != MMSYSERR_NOERROR)
+ if (waveOutGetDevCaps((UINT_PTR) u->hwo, &caps, sizeof(caps)) != MMSYSERR_NOERROR)
return;
if (!(caps.dwSupport & WAVECAPS_VOLUME))
return;
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/eb1297f1246d8b89ab0b7072010c3d9000540b95
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/eb1297f1246d8b89ab0b7072010c3d9000540b95
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20210113/f7bf417c/attachment-0001.htm>
More information about the pulseaudio-commits
mailing list