mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
#ifdef statements for windows socket creation were missing
This commit is contained in:
parent
6ad4b79c7e
commit
20b6be3852
1 changed files with 4 additions and 0 deletions
|
@ -650,7 +650,11 @@ gst_rtsp_server_get_io_channel (GstRTSPServer * server)
|
||||||
"listened on server socket %d, returning from connection setup", sockfd);
|
"listened on server socket %d, returning from connection setup", sockfd);
|
||||||
|
|
||||||
/* create IO channel for the socket */
|
/* create IO channel for the socket */
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
channel = g_io_channel_win32_new_socket (sockfd);
|
||||||
|
#else
|
||||||
channel = g_io_channel_unix_new (sockfd);
|
channel = g_io_channel_unix_new (sockfd);
|
||||||
|
#endif
|
||||||
g_io_channel_set_close_on_unref (channel, TRUE);
|
g_io_channel_set_close_on_unref (channel, TRUE);
|
||||||
|
|
||||||
GST_INFO_OBJECT (server, "listening on service %s", server->service);
|
GST_INFO_OBJECT (server, "listening on service %s", server->service);
|
||||||
|
|
Loading…
Reference in a new issue