mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
gstpoll: fix compiler warning with MingW
gstpoll.c: In function 'gst_poll_get_read_gpollfd': gstpoll.c:692:10: warning: assignment makes integer from pointer without a cast https://bugzilla.gnome.org/show_bug.cgi?id=638900
This commit is contained in:
parent
08a71b98a9
commit
0645c498f0
1 changed files with 5 additions and 1 deletions
|
@ -689,7 +689,11 @@ gst_poll_get_read_gpollfd (GstPoll * set, GPollFD * fd)
|
|||
#ifndef G_OS_WIN32
|
||||
fd->fd = set->control_read_fd.fd;
|
||||
#else
|
||||
fd->fd = set->wakeup_event;
|
||||
#if GLIB_SIZEOF_VOID_P == 8
|
||||
fd->fd = (gint64) set->wakeup_event;
|
||||
#else
|
||||
fd->fd = (gint) set->wakeup_event;
|
||||
#endif
|
||||
#endif
|
||||
fd->events = G_IO_IN | G_IO_HUP | G_IO_ERR;
|
||||
fd->revents = 0;
|
||||
|
|
Loading…
Reference in a new issue