mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
stream: take caps after the session manager
Take the caps for the SDP after they leave the rtpbin so that we can also get the properties added by rtpbin elements.
This commit is contained in:
parent
50ca10e751
commit
2c7ffe97ca
1 changed files with 2 additions and 2 deletions
|
@ -1738,7 +1738,7 @@ gst_rtsp_stream_join_bin (GstRTSPStream * stream, GstBin * bin,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* be notified of caps changes */
|
/* be notified of caps changes */
|
||||||
priv->caps_sig = g_signal_connect (priv->send_rtp_sink, "notify::caps",
|
priv->caps_sig = g_signal_connect (priv->send_src[0], "notify::caps",
|
||||||
(GCallback) caps_notify, stream);
|
(GCallback) caps_notify, stream);
|
||||||
|
|
||||||
priv->is_joined = TRUE;
|
priv->is_joined = TRUE;
|
||||||
|
@ -1803,7 +1803,7 @@ gst_rtsp_stream_leave_bin (GstRTSPStream * stream, GstBin * bin,
|
||||||
GST_INFO ("stream %p leaving bin", stream);
|
GST_INFO ("stream %p leaving bin", stream);
|
||||||
|
|
||||||
gst_pad_unlink (priv->srcpad, priv->send_rtp_sink);
|
gst_pad_unlink (priv->srcpad, priv->send_rtp_sink);
|
||||||
g_signal_handler_disconnect (priv->send_rtp_sink, priv->caps_sig);
|
g_signal_handler_disconnect (priv->send_src[0], priv->caps_sig);
|
||||||
gst_element_release_request_pad (rtpbin, priv->send_rtp_sink);
|
gst_element_release_request_pad (rtpbin, priv->send_rtp_sink);
|
||||||
gst_object_unref (priv->send_rtp_sink);
|
gst_object_unref (priv->send_rtp_sink);
|
||||||
priv->send_rtp_sink = NULL;
|
priv->send_rtp_sink = NULL;
|
||||||
|
|
Loading…
Reference in a new issue