gst/udp/gstmultiudpsink.c: Don't try to leave a multicast group with an invalid socket
authorThijs Vermeir <thijsvermeir@gmail.com>
Fri, 18 Jan 2008 10:04:25 +0000 (10:04 +0000)
committerThijs Vermeir <thijsvermeir@gmail.com>
Fri, 18 Jan 2008 10:04:25 +0000 (10:04 +0000)
Original commit message from CVS:
* gst/udp/gstmultiudpsink.c:
Don't try to leave a multicast group with an invalid socket

ChangeLog
common
gst/udp/gstmultiudpsink.c

index 748ff82..7cba0d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * ext/flac/gstflacdec.c:
diff --git a/common b/common
index 0efbab8..a78a949 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 0efbab89d333b5d07cc7da1a501c38edf5bb4f72
+Subproject commit a78a9496c0c8cd815dda3d8d6127f0a654665abf
index d36b696..be8d484 100644 (file)
@@ -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 */