mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 16:51:10 +00:00
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
This commit is contained in:
parent
bab55828ae
commit
21bfa428d1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue