[farsight2/master] msn: Allow any 4-digit session-id

Olivier Crête olivier.crete at collabora.co.uk
Tue Jul 14 09:51:00 PDT 2009


---
 gst/fsmsnconference/fs-msn-connection.c |    4 ++--
 gst/fsmsnconference/fs-msn-stream.c     |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gst/fsmsnconference/fs-msn-connection.c b/gst/fsmsnconference/fs-msn-connection.c
index 4b0113d..490dcee 100644
--- a/gst/fsmsnconference/fs-msn-connection.c
+++ b/gst/fsmsnconference/fs-msn-connection.c
@@ -180,7 +180,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",
-          9000, 9999, 9000,
+          1000, 9999, 9000,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   gobject_class->dispose = fs_msn_connection_dispose;
@@ -396,7 +396,7 @@ fs_msn_connection_set_remote_candidates (FsMsnConnection *self,
     {
       guint sid = atoi (candidate->username);
 
-      if (sid < 9000 || session_id > 9999)
+      if (sid < 1000 || session_id > 9999)
       {
           g_set_error (error, FS_ERROR, FS_ERROR_INVALID_ARGUMENTS,
               "The session ID (in the username) must be between 9000 and 9999,"
diff --git a/gst/fsmsnconference/fs-msn-stream.c b/gst/fsmsnconference/fs-msn-stream.c
index 1581d4b..6acf54a 100644
--- a/gst/fsmsnconference/fs-msn-stream.c
+++ b/gst/fsmsnconference/fs-msn-stream.c
@@ -185,7 +185,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",
-          9000, 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