From 2c7ffe97ca73d573d62e64336cff1e9fa5bfbb14 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 13 Mar 2014 14:27:15 +0100 Subject: [PATCH] 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. --- gst/rtsp-server/rtsp-stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c index be6bd158aa..d4d1dbe992 100644 --- a/gst/rtsp-server/rtsp-stream.c +++ b/gst/rtsp-server/rtsp-stream.c @@ -1738,7 +1738,7 @@ gst_rtsp_stream_join_bin (GstRTSPStream * stream, GstBin * bin, } /* 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); 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_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_object_unref (priv->send_rtp_sink); priv->send_rtp_sink = NULL;