stream: set ttl-mc before adding the socket

Set ttl-mc before adding the socket. Otherwise the value ttl-mc will
never be set on socket.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=724531
This commit is contained in:
Göran Jönsson 2014-02-17 10:43:05 +01:00 committed by Wim Taymans
parent 0bd687f210
commit a7f0feff23

View file

@ -2071,14 +2071,14 @@ update_transport (GstRTSPStream * stream, GstRTSPStreamTransport * trans,
} }
if (add) { if (add) {
GST_INFO ("adding %s:%d-%d", dest, min, max);
g_signal_emit_by_name (priv->udpsink[0], "add", dest, min, NULL);
g_signal_emit_by_name (priv->udpsink[1], "add", dest, max, NULL);
if (ttl > 0) { if (ttl > 0) {
GST_INFO ("setting ttl-mc %d", ttl); GST_INFO ("setting ttl-mc %d", ttl);
g_object_set (G_OBJECT (priv->udpsink[0]), "ttl-mc", ttl, NULL); g_object_set (G_OBJECT (priv->udpsink[0]), "ttl-mc", ttl, NULL);
g_object_set (G_OBJECT (priv->udpsink[1]), "ttl-mc", ttl, NULL); g_object_set (G_OBJECT (priv->udpsink[1]), "ttl-mc", ttl, NULL);
} }
GST_INFO ("adding %s:%d-%d", dest, min, max);
g_signal_emit_by_name (priv->udpsink[0], "add", dest, min, NULL);
g_signal_emit_by_name (priv->udpsink[1], "add", dest, max, NULL);
priv->transports = g_list_prepend (priv->transports, trans); priv->transports = g_list_prepend (priv->transports, trans);
} else { } else {
GST_INFO ("removing %s:%d-%d", dest, min, max); GST_INFO ("removing %s:%d-%d", dest, min, max);