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:
Tim-Philipp Müller 2013-11-28 16:22:01 +00:00
parent 65e492a403
commit 1d40b1d2bb

View file

@ -152,6 +152,7 @@ gst_tcp_server_sink_finalize (GObject * gobject)
static gboolean
gst_tcp_server_sink_handle_server_read (GstTCPServerSink * sink)
{
GstMultiSinkHandle handle;
GSocket *client_socket;
GError *err = NULL;
@ -161,8 +162,8 @@ gst_tcp_server_sink_handle_server_read (GstTCPServerSink * sink)
if (!client_socket)
goto accept_failed;
gst_multi_handle_sink_add (GST_MULTI_HANDLE_SINK (sink),
(GstMultiSinkHandle) client_socket);
handle.socket = client_socket;
gst_multi_handle_sink_add (GST_MULTI_HANDLE_SINK (sink), handle);
#ifndef GST_DISABLE_GST_DEBUG
{