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
This commit is contained in:
Thijs Vermeir 2008-01-18 10:04:25 +00:00
parent 3ded44b66d
commit 1fc821baf2
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
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> 2008-01-17 Tim-Philipp Müller <tim at centricular dot net>
* ext/flac/gstflacdec.c: * ext/flac/gstflacdec.c:

2
common

@ -1 +1 @@
Subproject commit 0efbab89d333b5d07cc7da1a501c38edf5bb4f72 Subproject commit a78a9496c0c8cd815dda3d8d6127f0a654665abf

View file

@ -727,7 +727,8 @@ gst_multiudpsink_remove (GstMultiUDPSink * sink, const gchar * host, gint port)
g_get_current_time (&now); g_get_current_time (&now);
client->disconnect_time = GST_TIMEVAL_TO_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); leave_multicast (client);
/* Unlock to emit signal before we delete the actual client */ /* Unlock to emit signal before we delete the actual client */