[farsight2/master] msn : session ID can be between 1000 and 9999
Louis-Francis Ratté-Boulianne
louis-francis.ratte-boulianne at collabora.co.uk
Tue Jul 14 09:51:04 PDT 2009
---
gst/fsmsnconference/fs-msn-connection.c | 6 +++---
gst/fsmsnconference/fs-msn-stream.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gst/fsmsnconference/fs-msn-connection.c b/gst/fsmsnconference/fs-msn-connection.c
index cf20306..4063c78 100644
--- a/gst/fsmsnconference/fs-msn-connection.c
+++ b/gst/fsmsnconference/fs-msn-connection.c
@@ -178,7 +178,7 @@ fs_msn_connection_class_init (FsMsnConnectionClass *klass)
g_param_spec_uint ("session-id",
"The session-id of the session",
"This is the session-id of the MSN session",
- 1, 9999, 9000,
+ 1000, 9999, 9000,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
@@ -390,10 +390,10 @@ fs_msn_connection_set_remote_candidates (FsMsnConnection *self,
{
gint sid = atoi (candidate->username);
- if (sid < 1 || sid > 9999)
+ if (sid < 1000 || sid > 9999)
{
g_set_error (error, FS_ERROR, FS_ERROR_INVALID_ARGUMENTS,
- "The session ID (in the username) must be between 9000 and 9999,"
+ "The session ID (in the username) must be between 1000 and 9999,"
" %d is invalid", sid);
goto out;
}
diff --git a/gst/fsmsnconference/fs-msn-stream.c b/gst/fsmsnconference/fs-msn-stream.c
index 906b60b..fb8282a 100644
--- a/gst/fsmsnconference/fs-msn-stream.c
+++ b/gst/fsmsnconference/fs-msn-stream.c
@@ -182,7 +182,7 @@ fs_msn_stream_class_init (FsMsnStreamClass *klass)
g_param_spec_uint ("session-id",
"The session-id of the session",
"This is the session-id of the MSN session",
- 1, 9999, 9000,
+ 1000, 9999, 9000,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_INITIAL_PORT,
--
1.5.6.5
More information about the farsight-commits
mailing list