From b398d611a459a674d6d7f097350ce47fe7e721d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Graff?= Date: Tue, 7 Oct 2008 18:54:41 +0000 Subject: gst/rtpmanager/gstrtpbin-marshal.list: Add marshaller for new action signal. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Patch by: HÃ¥vard Graff * gst/rtpmanager/gstrtpbin-marshal.list: Add marshaller for new action signal. * gst/rtpmanager/gstrtpbin.c: (gst_rtp_bin_get_internal_session), (gst_rtp_bin_class_init): * gst/rtpmanager/gstrtpbin.h: Add action signal to retrieve the internal RTPSession object. * gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_class_init), (gst_rtp_session_get_property), (gst_rtp_session_release_pad): Add property to access the internal RTPSession object. * gst/rtpmanager/rtpsession.c: (rtp_session_class_init), (check_collision): * gst/rtpmanager/rtpsession.h: Add action signal to retrieve an RTPSource object by SSRC. See #555396. --- gst/rtpmanager/gstrtpsession.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'gst/rtpmanager/gstrtpsession.c') diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 5257b50e..fdc4ea2e 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -225,6 +225,7 @@ enum PROP_SDES_NOTE, PROP_NUM_SOURCES, PROP_NUM_ACTIVE_SOURCES, + PROP_INTERNAL_SESSION, PROP_LAST }; @@ -655,6 +656,11 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass) "The number of active sources in the session", 0, G_MAXUINT, DEFAULT_NUM_ACTIVE_SOURCES, G_PARAM_READABLE)); + g_object_class_install_property (gobject_class, PROP_INTERNAL_SESSION, + g_param_spec_object ("internal-session", "Internal Session", + "The internal RTPSession object", RTP_TYPE_SESSION, + G_PARAM_READABLE)); + gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_rtp_session_change_state); gstelement_class->request_new_pad = @@ -845,6 +851,9 @@ gst_rtp_session_get_property (GObject * object, guint prop_id, g_value_set_uint (value, rtp_session_get_num_active_sources (priv->session)); break; + case PROP_INTERNAL_SESSION: + g_value_set_object (value, priv->session); + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; @@ -1982,9 +1991,3 @@ wrong_pad: return; } } - -void -gst_rtp_session_set_ssrc (GstRtpSession * sess, guint32 ssrc) -{ - rtp_session_set_internal_ssrc (sess->priv->session, ssrc); -} -- cgit v1.2.1