stream: take caps after the session manager
authorWim Taymans <wtaymans@redhat.com>
Thu, 13 Mar 2014 13:27:15 +0000 (14:27 +0100)
committerWim Taymans <wtaymans@redhat.com>
Thu, 13 Mar 2014 13:27:15 +0000 (14:27 +0100)
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

index be6bd15..d4d1dbe 100644 (file)
@@ -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;