summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@ocrete.ca>2014-05-03 18:38:55 -0400
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2014-05-03 18:38:55 -0400
commiteb809dbae5074cf527b37f6bb7171ccd1d20682b (patch)
treee7463cbe6eed9ed1d956380b75e58c7172f84898
parent055e0f4089a094c6f9735270280e9d5970716bd3 (diff)
downloadfarstream-eb809dbae5074cf527b37f6bb7171ccd1d20682b.tar.gz
rtpsession: Also notify of SSRC change on caps change
-rw-r--r--gst/fsrtpconference/fs-rtp-session.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index e20539fb..7aece92d 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -994,6 +994,12 @@ _rtpbin_internal_session_notify_internal_ssrc (GObject *internal_session,
}
static void
+_rtpbin_send_rtp_sink_notify_caps (GstPad *pad, GParamSpec *param, gpointer self)
+{
+ g_object_notify (G_OBJECT (self), "ssrc");
+}
+
+static void
_rtp_tfrc_bitrate_changed (GObject *rtp_tfrc, GParamSpec *pspec,
FsRtpSession *self)
{
@@ -1378,6 +1384,11 @@ fs_rtp_session_constructed (GObject *object)
tmp);
g_free (tmp);
+
+ g_signal_connect_object (self->priv->rtpbin_send_rtp_sink, "notify::caps",
+ G_CALLBACK (_rtpbin_send_rtp_sink_notify_caps), self, 0);
+
+
muxer_src_pad = gst_element_get_static_pad (muxer, "src");
ret = gst_pad_link (muxer_src_pad, self->priv->rtpbin_send_rtp_sink);