ipcpipeline: fix crash and error on windows with SOCKET or _pipe()
authorjinsl00000 <jinsl00000@msn.cn>
Fri, 25 Feb 2022 07:00:05 +0000 (15:00 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 1 Mar 2022 06:31:51 +0000 (06:31 +0000)
commitef4cc9e6371c5fb5031dee5df5acfda41be0392c
tree7e193812b6df9090b58b6b3c25428b79b0425bfc
parent24eb35f113404f8f5bd8f2a69bb14058441cb656
ipcpipeline: fix crash and error on windows with SOCKET or _pipe()

The fd was in different meanings on windows:
POSIX read and write use the fd as a file descriptor.
The gst_poll use the fd as a WSASocket.

This patch use WSASocket as default on windows. This is a temporary measure, because IPC has many different implement. There may be a better way in the future.

See #1044

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1791>
subprojects/gst-plugins-bad/sys/ipcpipeline/gstipcpipelinecomm.c
subprojects/gst-plugins-bad/sys/ipcpipeline/meson.build