[farsight2/master] msn: Allow session ids from 1

Olivier Crête olivier.crete at collabora.co.uk
Tue Jul 14 09:51:00 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 ca0cd4f..f4ccb20 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",
-          1000, 9999, 9000,
+          1, 9999, 9000,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
@@ -387,9 +387,9 @@ fs_msn_connection_set_remote_candidates (FsMsnConnection *self,
 
     if (candidate->username)
     {
-      guint sid = atoi (candidate->username);
+      gint sid = atoi (candidate->username);
 
-      if (sid < 1000 || session_id > 9999)
+      if (sid < 1 || 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 dc80e79..4c9a41d 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",
-          1000, 9999, 9000,
+          1, 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