Commit 1fc821ba authored by Thijs Vermeir's avatar Thijs Vermeir
Browse files

gst/udp/gstmultiudpsink.c: Don't try to leave a multicast group with an invalid socket

Original commit message from CVS:
* gst/udp/gstmultiudpsink.c:
Don't try to leave a multicast group with an invalid socket
parent 3ded44b6
2008-01-18 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/udp/gstmultiudpsink.c:
Don't try to leave a multicast group with an invalid socket
2008-01-17 Tim-Philipp Müller <tim at centricular dot net>
 
* ext/flac/gstflacdec.c:
......
common @ a78a9496
Subproject commit 0efbab89d333b5d07cc7da1a501c38edf5bb4f72
Subproject commit a78a9496c0c8cd815dda3d8d6127f0a654665abf
......@@ -727,7 +727,8 @@ gst_multiudpsink_remove (GstMultiUDPSink * sink, const gchar * host, gint port)
g_get_current_time (&now);
client->disconnect_time = GST_TIMEVAL_TO_TIME (now);
if (client->multi_addr.imr_multiaddr.s_addr && sink->auto_multicast)
if (*(client->sock) != -1 && client->multi_addr.imr_multiaddr.s_addr
&& sink->auto_multicast)
leave_multicast (client);
/* Unlock to emit signal before we delete the actual client */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment