CVS Root: /cvs/gstreamer
Module: gst-plugins-bad
Changes by: wtay
Date: Sat Nov 22 2008 15:31:50 UTC
Log message:
* gst/rtpmanager/rtpsession.c: (rtp_session_class_init),
(rtp_session_init), (rtp_session_set_property),
(rtp_session_get_property):
Add property to configure the RTCP MTU.
Modified files:
. : ChangeLog
gst/rtpmanager : rtpsession.c
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ChangeLog.diff?r1=1.3729&r2=1.3730
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/rtpmanager/rtpsession.c.diff?r1=1.38&r2=1.39
====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/ChangeLog,v
retrieving revision 1.3729
retrieving revision 1.3730
diff -u -d -r1.3729 -r1.3730
--- ChangeLog 22 Nov 2008 15:24:45 -0000 1.3729
+++ ChangeLog 22 Nov 2008 15:31:34 -0000 1.3730
@@ -1,6 +1,13 @@
2008-11-22 Wim Taymans <[email protected]>
* gst/rtpmanager/rtpsession.c: (rtp_session_class_init),
+ (rtp_session_init), (rtp_session_set_property),
+ (rtp_session_get_property):
+ Add property to configure the RTCP MTU.
+
+2008-11-22 Wim Taymans <[email protected]>
+ * gst/rtpmanager/rtpsession.c: (rtp_session_class_init),
(copy_source), (rtp_session_create_sources),
(rtp_session_get_property):
Add G_PARAM_STATIC_STRINGS.
Index: rtpsession.c
RCS file: /cvs/gstreamer/gst-plugins-bad/gst/rtpmanager/rtpsession.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- rtpsession.c 22 Nov 2008 15:24:46 -0000 1.38
+++ rtpsession.c 22 Nov 2008 15:31:36 -0000 1.39
@@ -48,6 +48,7 @@
#define DEFAULT_INTERNAL_SOURCE NULL
#define DEFAULT_BANDWIDTH RTP_STATS_BANDWIDTH
#define DEFAULT_RTCP_FRACTION RTP_STATS_RTCP_BANDWIDTH
+#define DEFAULT_RTCP_MTU 1400
#define DEFAULT_SDES_CNAME NULL
#define DEFAULT_SDES_NAME NULL
#define DEFAULT_SDES_EMAIL NULL
@@ -65,6 +66,7 @@
PROP_INTERNAL_SOURCE,
PROP_BANDWIDTH,
PROP_RTCP_FRACTION,
+ PROP_RTCP_MTU,
PROP_SDES_CNAME,
PROP_SDES_NAME,
PROP_SDES_EMAIL,
@@ -259,6 +261,12 @@
0.0, G_MAXDOUBLE, DEFAULT_RTCP_FRACTION,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property (gobject_class, PROP_RTCP_MTU,
+ g_param_spec_uint ("rtcp-mtu", "RTCP MTU",
+ "The maximum size of the RTCP packets",
+ 16, G_MAXINT16, DEFAULT_RTCP_MTU,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_SDES_CNAME,
g_param_spec_string ("sdes-cname", "SDES CNAME",
"The CNAME to put in SDES messages of this session",
@@ -369,7 +377,7 @@
/* default UDP header length */
sess->header_len = 28;
- sess->mtu = 1400;
+ sess->mtu = DEFAULT_RTCP_MTU;
/* some default SDES entries */
str = g_strdup_printf ("%s@%s", g_get_user_name (), g_get_host_name ());
@@ -449,6 +457,9 @@
case PROP_RTCP_FRACTION:
rtp_session_set_rtcp_fraction (sess, g_value_get_double (value));
break;
+ case PROP_RTCP_MTU:
+ sess->mtu = g_value_get_uint (value);
+ break;
case PROP_SDES_CNAME:
rtp_session_set_sdes_string (sess, GST_RTCP_SDES_CNAME,
g_value_get_string (value));
@@ -501,6 +512,9 @@
g_value_set_double (value, rtp_session_get_rtcp_fraction (sess));
+ g_value_set_uint (value, sess->mtu);
g_value_take_string (value, rtp_session_get_sdes_string (sess,
GST_RTCP_SDES_CNAME));
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.