diff options
author | Kouhei Sutou <kou@clear-code.com> | 2015-09-09 13:58:05 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-09-09 16:57:08 +0300 |
commit | 21bfa428d1f6cd84aa5b2da0eef047d3130babe2 (patch) | |
tree | f7c3fdb254807feb27a3efbe13bebe6ada21fa7a /sys/directsound | |
parent | bab55828ae7425f1a62d1f8948e90c5a4c2bceb9 (diff) | |
download | gstreamer-plugins-bad-21bfa428d1f6cd84aa5b2da0eef047d3130babe2.tar.gz |
directsoundsrc: fix build error for 64bit Windows build by MinGW
Casting to UINT from HMIXER generates the following warning with
64bit Windows target MinGW:
gstdirectsoundsrc.c: In function 'gst_directsound_src_mixer_find':
gstdirectsoundsrc.c:733:30: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
mmres = mixerGetDevCaps ((UINT) dsoundsrc->mixer,
^
cc1: all warnings being treated as errors
We can use portable GPOINTER_TO_UINT() macro for this propose.
https://bugzilla.gnome.org/show_bug.cgi?id=754756
Diffstat (limited to 'sys/directsound')
-rw-r--r-- | sys/directsound/gstdirectsoundsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/directsound/gstdirectsoundsrc.c b/sys/directsound/gstdirectsoundsrc.c index 0bd77e829..18f49f881 100644 --- a/sys/directsound/gstdirectsoundsrc.c +++ b/sys/directsound/gstdirectsoundsrc.c @@ -730,7 +730,7 @@ gst_directsound_src_mixer_find (GstDirectSoundSrc * dsoundsrc, if (mmres != MMSYSERR_NOERROR) continue; - mmres = mixerGetDevCaps ((UINT) dsoundsrc->mixer, + mmres = mixerGetDevCaps (GPOINTER_TO_UINT (dsoundsrc->mixer), mixer_caps, sizeof (MIXERCAPS)); if (mmres != MMSYSERR_NOERROR) { |