mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-16 03:18:29 +00:00
rtsp-stream: only create funnel if it didn't exist already.
This precented using multiple protocols for the same stream. https://bugzilla.gnome.org/show_bug.cgi?id=796634
This commit is contained in:
parent
36cc79c5e2
commit
3b70c68e6e
|
@ -3068,12 +3068,14 @@ create_receiver_part (GstRTSPStream * stream, const GstRTSPTransport *
|
||||||
}
|
}
|
||||||
|
|
||||||
/* make funnel for the RTP/RTCP receivers */
|
/* make funnel for the RTP/RTCP receivers */
|
||||||
priv->funnel[i] = gst_element_factory_make ("funnel", NULL);
|
if (!priv->funnel[i]) {
|
||||||
gst_bin_add (bin, priv->funnel[i]);
|
priv->funnel[i] = gst_element_factory_make ("funnel", NULL);
|
||||||
|
gst_bin_add (bin, priv->funnel[i]);
|
||||||
|
|
||||||
pad = gst_element_get_static_pad (priv->funnel[i], "src");
|
pad = gst_element_get_static_pad (priv->funnel[i], "src");
|
||||||
gst_pad_link (pad, priv->recv_sink[i]);
|
gst_pad_link (pad, priv->recv_sink[i]);
|
||||||
gst_object_unref (pad);
|
gst_object_unref (pad);
|
||||||
|
}
|
||||||
|
|
||||||
if (udp && !priv->udpsrc_v4[i] && priv->server_addr_v4) {
|
if (udp && !priv->udpsrc_v4[i] && priv->server_addr_v4) {
|
||||||
GST_DEBUG_OBJECT (stream, "udp IPv4, create and configure udpsources");
|
GST_DEBUG_OBJECT (stream, "udp IPv4, create and configure udpsources");
|
||||||
|
|
Loading…
Reference in a new issue