mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
tcp: fix compilation with MSVC
error C2440 at line 165 of gsttcpserversink.c type cast error: cannot convert from GSocket* to GstMultiSinkHandle
This commit is contained in:
parent
65e492a403
commit
1d40b1d2bb
1 changed files with 3 additions and 2 deletions
|
@ -152,6 +152,7 @@ gst_tcp_server_sink_finalize (GObject * gobject)
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_tcp_server_sink_handle_server_read (GstTCPServerSink * sink)
|
gst_tcp_server_sink_handle_server_read (GstTCPServerSink * sink)
|
||||||
{
|
{
|
||||||
|
GstMultiSinkHandle handle;
|
||||||
GSocket *client_socket;
|
GSocket *client_socket;
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
|
||||||
|
@ -161,8 +162,8 @@ gst_tcp_server_sink_handle_server_read (GstTCPServerSink * sink)
|
||||||
if (!client_socket)
|
if (!client_socket)
|
||||||
goto accept_failed;
|
goto accept_failed;
|
||||||
|
|
||||||
gst_multi_handle_sink_add (GST_MULTI_HANDLE_SINK (sink),
|
handle.socket = client_socket;
|
||||||
(GstMultiSinkHandle) client_socket);
|
gst_multi_handle_sink_add (GST_MULTI_HANDLE_SINK (sink), handle);
|
||||||
|
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue