diff options
author | Håvard Graff <havard.graff@tandberg.com> | 2008-10-07 18:54:41 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-10-07 18:54:41 +0000 |
commit | b398d611a459a674d6d7f097350ce47fe7e721d1 (patch) | |
tree | bf68f94de59ae16d02d9c0d1e28341586a22f80c /gst/rtpmanager/gstrtpsession.c | |
parent | ae65d3945bd52f49fcf03b404f24555650b2b402 (diff) | |
download | gst-plugins-bad-b398d611a459a674d6d7f097350ce47fe7e721d1.tar.gz gst-plugins-bad-b398d611a459a674d6d7f097350ce47fe7e721d1.tar.bz2 gst-plugins-bad-b398d611a459a674d6d7f097350ce47fe7e721d1.zip |
gst/rtpmanager/gstrtpbin-marshal.list: Add marshaller for new action signal.
Original commit message from CVS:
Patch by: Håvard Graff <havard dot graff at tandberg dot com>
* 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.
Diffstat (limited to 'gst/rtpmanager/gstrtpsession.c')
-rw-r--r-- | gst/rtpmanager/gstrtpsession.c | 15 |
1 files changed, 9 insertions, 6 deletions
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); -} |