[farsight2/master] msn: Accept session_id between 1 and 9999

Louis-Francis Ratté-Boulianne Louis-Francis.Ratte-Boulianne at collabora.co.uk
Mon Jul 13 11:00:21 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 bddbdbf..dd71216 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, 1,
           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 < 1000 || sid > 9999)
+      if (sid < 1 || sid > 9999)
       {
           g_set_error (error, FS_ERROR, FS_ERROR_INVALID_ARGUMENTS,
-              "The session ID (in the username) must be between 1000 and 9999,"
+              "The session ID (in the username) must be between 1 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 20acdeb..23a6745 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, 1,
           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