media-factory: configure multicast in media

This commit is contained in:
Wim Taymans 2011-08-16 13:27:39 +02:00
parent 5b53335873
commit ccfb99f852

View file

@ -793,6 +793,7 @@ default_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
gboolean shared, eos_shutdown;
guint size;
GstRTSPAuth *auth;
gchar *mc;
/* configure the sharedness */
GST_RTSP_MEDIA_FACTORY_LOCK (factory);
@ -809,4 +810,8 @@ default_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
gst_rtsp_media_set_auth (media, auth);
g_object_unref (auth);
}
if ((mc = gst_rtsp_media_factory_get_multicast_group (factory))) {
gst_rtsp_media_set_multicast_group (media, mc);
g_free (mc);
}
}