mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
media-factory: configure multicast in media
This commit is contained in:
parent
5b53335873
commit
ccfb99f852
1 changed files with 5 additions and 0 deletions
|
@ -793,6 +793,7 @@ default_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
|
||||||
gboolean shared, eos_shutdown;
|
gboolean shared, eos_shutdown;
|
||||||
guint size;
|
guint size;
|
||||||
GstRTSPAuth *auth;
|
GstRTSPAuth *auth;
|
||||||
|
gchar *mc;
|
||||||
|
|
||||||
/* configure the sharedness */
|
/* configure the sharedness */
|
||||||
GST_RTSP_MEDIA_FACTORY_LOCK (factory);
|
GST_RTSP_MEDIA_FACTORY_LOCK (factory);
|
||||||
|
@ -809,4 +810,8 @@ default_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
|
||||||
gst_rtsp_media_set_auth (media, auth);
|
gst_rtsp_media_set_auth (media, auth);
|
||||||
g_object_unref (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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue