sdpdemux: disable loop and auto multicast join
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 19 Mar 2010 10:10:40 +0000 (11:10 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 19 Mar 2010 10:13:30 +0000 (11:13 +0100)
Disable loopback of packets.
Disable autojoin of multicast groups in the sink because the source already
does that on the shared socket.

gst/sdp/gstsdpdemux.c

index 4470a6ba60fcf0b706b6e08afae9946ab7ecda53..b9fc106378452b6771dea1e6534cfe0823316f42 100644 (file)
@@ -1049,6 +1049,8 @@ gst_sdp_demux_stream_configure_udp_sink (GstSDPDemux * demux,
   if (!stream->multicast)
     g_signal_emit_by_name (stream->udpsink, "clear");
 
+  g_object_set (G_OBJECT (stream->udpsink), "auto-multicast", FALSE, NULL);
+  g_object_set (G_OBJECT (stream->udpsink), "loop", FALSE, NULL);
   /* no sync needed */
   g_object_set (G_OBJECT (stream->udpsink), "sync", FALSE, NULL);
   /* no async state changes needed */