[farsight2/master] Test for auto-multicast everywhere
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:24:28 PST 2008
---
transmitters/multicast/fs-multicast-transmitter.c | 1 -
transmitters/rawudp/fs-rawudp-transmitter.c | 6 +++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/transmitters/multicast/fs-multicast-transmitter.c b/transmitters/multicast/fs-multicast-transmitter.c
index 22b1428..7fb4447 100644
--- a/transmitters/multicast/fs-multicast-transmitter.c
+++ b/transmitters/multicast/fs-multicast-transmitter.c
@@ -673,7 +673,6 @@ _create_sinksource (gchar *elementname, GstBin *bin,
"sockfd", fd,
NULL);
-
if (g_object_class_find_property (G_OBJECT_GET_CLASS (elem),
"auto-multicast"))
g_object_set (elem, "auto-multicast", FALSE, NULL);
diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index 0175d0d..9b8f6f7 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -621,6 +621,11 @@ _create_sinksource (
"sockfd", fd,
NULL);
+ if (g_object_class_find_property (G_OBJECT_GET_CLASS (elem),
+ "auto-multicast"))
+ g_object_set (elem, "auto-multicast", FALSE, NULL);
+
+
if (!gst_bin_add (bin, elem))
{
g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
@@ -765,7 +770,6 @@ fs_rawudp_transmitter_get_udpport (FsRawUdpTransmitter *trans,
g_object_set (udpport->udpsink,
"async", FALSE,
"sync", FALSE,
- "auto-multicast", FALSE,
NULL);
trans->priv->udpports[component_id] =
--
1.5.6.5
More information about the farsight-commits
mailing list