rtsp-stream: avoid duplicating the first multicast client
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 31 Jul 2018 19:17:41 +0000 (21:17 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 14 Aug 2018 11:31:41 +0000 (14:31 +0300)
In dcb4533fedae3ac62bc25a916eb95927b7d69aec , we made it so
clients were dynamically added and removed to the multicast
udp sinks, as such we should no longer add a first client in
set_multicast_socket_for_udpsink

https://bugzilla.gnome.org/show_bug.cgi?id=793441

gst/rtsp-server/rtsp-stream.c

index 3439ea3..b95ead9 100644 (file)
@@ -1157,8 +1157,6 @@ set_multicast_socket_for_udpsink (GstElement * udpsink, GSocket * socket,
     GST_INFO ("setting ttl-mc %d", mcast_ttl);
     g_object_set (G_OBJECT (udpsink), "ttl-mc", mcast_ttl, NULL);
   }
-
-  g_signal_emit_by_name (udpsink, "add", addr_str, port, NULL);
 }