[farsight2/master] Add G_PARAM_STATIC_STRINGS everywhere

Olivier Crête olivier.crete at collabora.co.uk
Sat Jul 25 13:33:43 PDT 2009


---
 gst-libs/gst/farsight/fs-participant.c             |    2 +-
 gst-libs/gst/farsight/fs-session.c                 |   16 +++++-----
 gst-libs/gst/farsight/fs-stream-transmitter.c      |    6 ++--
 gst-libs/gst/farsight/fs-stream.c                  |   14 ++++----
 gst-libs/gst/farsight/fs-transmitter.c             |    6 ++--
 gst/fsmsnconference/fs-msn-stream.c                |    2 +-
 gst/fsrtpconference/fs-rtp-conference.c            |   14 ++++----
 gst/fsrtpconference/fs-rtp-session.c               |    6 ++--
 gst/fsrtpconference/fs-rtp-stream.c                |    2 +-
 gst/fsrtpconference/fs-rtp-substream.c             |   20 ++++++------
 gst/rtcpfilter/fs-rtcp-filter.c                    |    2 +-
 tests/check/transmitter/fake-filter.c              |    2 +-
 transmitters/nice/fs-nice-agent.c                  |   10 +++---
 transmitters/nice/fs-nice-stream-transmitter.c     |   14 ++++----
 transmitters/rawudp/fs-rawudp-component.c          |   30 ++++++++++----------
 transmitters/rawudp/fs-rawudp-stream-transmitter.c |   16 +++++-----
 16 files changed, 81 insertions(+), 81 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-participant.c b/gst-libs/gst/farsight/fs-participant.c
index 2f566d2..801b62f 100644
--- a/gst-libs/gst/farsight/fs-participant.c
+++ b/gst-libs/gst/farsight/fs-participant.c
@@ -106,7 +106,7 @@ fs_participant_class_init (FsParticipantClass *klass)
         "The cname of the participant",
         "A string of the cname of the participant",
         NULL,
-        G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
+        G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsParticipant::error:
diff --git a/gst-libs/gst/farsight/fs-session.c b/gst-libs/gst/farsight/fs-session.c
index ea20e8b..a9450b0 100644
--- a/gst-libs/gst/farsight/fs-session.c
+++ b/gst-libs/gst/farsight/fs-session.c
@@ -153,7 +153,7 @@ fs_session_class_init (FsSessionClass *klass)
         "An enum that specifies the media type of the session",
         FS_TYPE_MEDIA_TYPE,
         FS_MEDIA_TYPE_AUDIO,
-        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsSession:id:
@@ -168,7 +168,7 @@ fs_session_class_init (FsSessionClass *klass)
         "The ID of the session",
         "This ID is used on pad related to this session",
         0, G_MAXUINT, 0,
-        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsSession:sink-pad:
@@ -183,7 +183,7 @@ fs_session_class_init (FsSessionClass *klass)
         "A gstreamer sink pad for this session",
         "A pad used for sending data on this session",
         GST_TYPE_PAD,
-        G_PARAM_READABLE));
+        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsSession:codec-preferences:
@@ -206,7 +206,7 @@ fs_session_class_init (FsSessionClass *klass)
         "A GList of FsCodecs that allows user to set his codec options and"
         " priorities",
         FS_TYPE_CODEC_LIST,
-        G_PARAM_READABLE));
+        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsSession:codecs:
@@ -235,7 +235,7 @@ fs_session_class_init (FsSessionClass *klass)
         "List of codecs",
         "A GList of FsCodecs indicating the codecs for this session",
         FS_TYPE_CODEC_LIST,
-        G_PARAM_READABLE));
+        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsSession:codecs-without-config:
@@ -265,7 +265,7 @@ fs_session_class_init (FsSessionClass *klass)
           "A GList of FsCodecs indicating the codecs for this session without "
           "any configuration data",
           FS_TYPE_CODEC_LIST,
-          G_PARAM_READABLE));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsSession:current-send-codec:
@@ -283,7 +283,7 @@ fs_session_class_init (FsSessionClass *klass)
         "Current active send codec",
         "An FsCodec indicating the currently active send codec",
         FS_TYPE_CODEC,
-        G_PARAM_READABLE));
+        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsSession:codecs-ready
@@ -303,7 +303,7 @@ fs_session_class_init (FsSessionClass *klass)
           "Indicates if the codecs are ready or if their configuration is"
           " still being discovered",
           TRUE,
-          G_PARAM_READABLE));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsSession::error:
diff --git a/gst-libs/gst/farsight/fs-stream-transmitter.c b/gst-libs/gst/farsight/fs-stream-transmitter.c
index c5da5f3..09cdefb 100644
--- a/gst-libs/gst/farsight/fs-stream-transmitter.c
+++ b/gst-libs/gst/farsight/fs-stream-transmitter.c
@@ -122,7 +122,7 @@ fs_stream_transmitter_class_init (FsStreamTransmitterClass *klass)
         "Whether to send from this transmitter",
         "If set to FALSE, the transmitter will stop sending to this person",
         TRUE,
-        G_PARAM_READWRITE));
+        G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsStreamTransmitter:preferred-local-candidate:
@@ -137,7 +137,7 @@ fs_stream_transmitter_class_init (FsStreamTransmitterClass *klass)
         "The preferred candidates",
         "A GList of FsCandidates",
         FS_TYPE_CANDIDATE_LIST,
-        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsStreamTransmitter:associate-on-source
@@ -153,7 +153,7 @@ fs_stream_transmitter_class_init (FsStreamTransmitterClass *klass)
         "Associate incoming data based on the source address",
         "Whether to associate incoming data stream based on the source address",
         TRUE,
-        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsStreamTransmitter::error:
diff --git a/gst-libs/gst/farsight/fs-stream.c b/gst-libs/gst/farsight/fs-stream.c
index af94b9c..d895634 100644
--- a/gst-libs/gst/farsight/fs-stream.c
+++ b/gst-libs/gst/farsight/fs-stream.c
@@ -185,7 +185,7 @@ fs_stream_class_init (FsStreamClass *klass)
         "A GList of GstPads representing the source pads being used by this"
         " stream for the different codecs",
         ,
-        G_PARAM_READABLE));
+        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 #endif
 
   /**
@@ -202,7 +202,7 @@ fs_stream_class_init (FsStreamClass *klass)
         "List of remote codecs",
         "A GList of FsCodecs of the remote codecs",
         FS_TYPE_CODEC_LIST,
-        G_PARAM_READABLE));
+        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsStream:negotiated-codecs:
@@ -220,7 +220,7 @@ fs_stream_class_init (FsStreamClass *klass)
         "List of remote codecs",
         "A GList of FsCodecs of the negotiated codecs for this stream",
         FS_TYPE_CODEC_LIST,
-        G_PARAM_READABLE));
+        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsStream:current-recv-codecs:
@@ -241,7 +241,7 @@ fs_stream_class_init (FsStreamClass *klass)
           "The codecs currently being received",
           "A GList of FsCodec representing the codecs that have been received",
           FS_TYPE_CODEC_LIST,
-          G_PARAM_READABLE));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsStream:direction:
@@ -258,7 +258,7 @@ fs_stream_class_init (FsStreamClass *klass)
         "An enum to set and get the direction of the stream",
         FS_TYPE_STREAM_DIRECTION,
         FS_DIRECTION_NONE,
-        G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
+        G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsStream:participant:
@@ -273,7 +273,7 @@ fs_stream_class_init (FsStreamClass *klass)
         "The participant of the stream",
         "An FsParticipant represented by the stream",
         FS_TYPE_PARTICIPANT,
-        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsStream:session:
@@ -288,7 +288,7 @@ fs_stream_class_init (FsStreamClass *klass)
         "The session of the stream",
         "An FsSession represented by the stream",
         FS_TYPE_SESSION,
-        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsStream::error:
diff --git a/gst-libs/gst/farsight/fs-transmitter.c b/gst-libs/gst/farsight/fs-transmitter.c
index e4ca2fd..6520204 100644
--- a/gst-libs/gst/farsight/fs-transmitter.c
+++ b/gst-libs/gst/farsight/fs-transmitter.c
@@ -122,7 +122,7 @@ fs_transmitter_class_init (FsTransmitterClass *klass)
         "The network source",
         "A source GstElement to be used by a FsSession",
         GST_TYPE_ELEMENT,
-        G_PARAM_READABLE));
+        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsTransmitter:gst-sink:
@@ -141,7 +141,7 @@ fs_transmitter_class_init (FsTransmitterClass *klass)
         "The network source",
         "A source GstElement to be used by a FsSession",
         GST_TYPE_ELEMENT,
-        G_PARAM_READABLE));
+        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsTransmitter:components:
@@ -154,7 +154,7 @@ fs_transmitter_class_init (FsTransmitterClass *klass)
         "Number of componnets",
         "The number of components to create",
         1, 255, 1,
-        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsTransmitter::error:
diff --git a/gst/fsmsnconference/fs-msn-stream.c b/gst/fsmsnconference/fs-msn-stream.c
index 7aa7b29..5e43552 100644
--- a/gst/fsmsnconference/fs-msn-stream.c
+++ b/gst/fsmsnconference/fs-msn-stream.c
@@ -176,7 +176,7 @@ fs_msn_stream_class_init (FsMsnStreamClass *klass)
           "The Conference this stream refers to",
           "This is a conveniance pointer for the Conference",
           FS_TYPE_MSN_CONFERENCE,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (gobject_class,
       PROP_SESSION_ID,
       g_param_spec_uint ("session-id",
diff --git a/gst/fsrtpconference/fs-rtp-conference.c b/gst/fsrtpconference/fs-rtp-conference.c
index 0917681..234f8da 100644
--- a/gst/fsrtpconference/fs-rtp-conference.c
+++ b/gst/fsrtpconference/fs-rtp-conference.c
@@ -251,37 +251,37 @@ fs_rtp_conference_class_init (FsRtpConferenceClass * klass)
   g_object_class_install_property (gobject_class, PROP_SDES_CNAME,
       g_param_spec_string ("sdes-cname", "Canonical name",
           "The CNAME for the RTP sessions",
-          NULL, G_PARAM_READWRITE));
+          NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_SDES_NAME,
       g_param_spec_string ("sdes-name", "SDES NAME",
           "The NAME to put in SDES messages of this session",
-          NULL, G_PARAM_READWRITE));
+          NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_SDES_EMAIL,
       g_param_spec_string ("sdes-email", "SDES EMAIL",
           "The EMAIL to put in SDES messages of this session",
-          NULL, G_PARAM_READWRITE));
+          NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_SDES_PHONE,
       g_param_spec_string ("sdes-phone", "SDES PHONE",
           "The PHONE to put in SDES messages of this session",
-          NULL, G_PARAM_READWRITE));
+          NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_SDES_LOCATION,
       g_param_spec_string ("sdes-location", "SDES LOCATION",
           "The LOCATION to put in SDES messages of this session",
-          NULL, G_PARAM_READWRITE));
+          NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_SDES_TOOL,
       g_param_spec_string ("sdes-tool", "SDES TOOL",
           "The TOOL to put in SDES messages of this session",
-          NULL, G_PARAM_READWRITE));
+          NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_SDES_NOTE,
       g_param_spec_string ("sdes-note", "SDES NOTE",
           "The NOTE to put in SDES messages of this session",
-          NULL, G_PARAM_READWRITE));
+          NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index a1d309b..af3fea2 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -352,7 +352,7 @@ fs_rtp_session_class_init (FsRtpSessionClass *klass)
       "The Conference this stream refers to",
       "This is a convience pointer for the Conference",
       FS_TYPE_RTP_CONFERENCE,
-      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_NO_RTCP_TIMEOUT,
@@ -364,7 +364,7 @@ fs_rtp_session_class_init (FsRtpSessionClass *klass)
           " attach it immediataly to the FsStream and prohibit the creation"
           " of a second FsStream",
           -1, G_MAXINT, DEFAULT_NO_RTCP_TIMEOUT,
-          G_PARAM_READWRITE));
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_SSRC,
@@ -372,7 +372,7 @@ fs_rtp_session_class_init (FsRtpSessionClass *klass)
           "The SSRC of the sent data",
           "This is the current SSRC used to send data"
           " (defaults to a random value)",
-          0, G_MAXUINT, 0, G_PARAM_READWRITE));
+          0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   gobject_class->dispose = fs_rtp_session_dispose;
   gobject_class->finalize = fs_rtp_session_finalize;
diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index ae975b3..12bf2a4 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -207,7 +207,7 @@ fs_rtp_stream_class_init (FsRtpStreamClass *klass)
         "The transmitter use by the stream",
         "An FsStreamTransmitter used by this stream",
         FS_TYPE_STREAM_TRANSMITTER,
-        G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
+        G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
 }
 
diff --git a/gst/fsrtpconference/fs-rtp-substream.c b/gst/fsrtpconference/fs-rtp-substream.c
index e26979f..a166b73 100644
--- a/gst/fsrtpconference/fs-rtp-substream.c
+++ b/gst/fsrtpconference/fs-rtp-substream.c
@@ -188,7 +188,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
       "The FsRtpConference this substream stream refers to",
       "This is a convience pointer for the Conference",
       FS_TYPE_RTP_CONFERENCE,
-      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
     PROP_SESSION,
@@ -196,7 +196,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
       "The FsRtpSession this substream stream refers to",
       "This is a convience pointer for the parent FsRtpSession",
       FS_TYPE_RTP_SESSION,
-      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
 
   g_object_class_install_property (gobject_class,
@@ -205,7 +205,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
       "The FsRtpStream this substream stream refers to",
       "This is a convience pointer for the parent FsRtpStream",
       FS_TYPE_RTP_STREAM,
-      G_PARAM_READWRITE));
+      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
 
   g_object_class_install_property (gobject_class,
@@ -214,7 +214,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
       "The GstPad this substrea is linked to",
       "This is the pad on which this substream will attach itself",
       GST_TYPE_PAD,
-      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
 
   g_object_class_install_property (gobject_class,
@@ -223,7 +223,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
       "The ssrc this stream is used for",
       "This is the SSRC from the pad",
       0, G_MAXUINT32, 0,
-      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
     PROP_PT,
@@ -231,7 +231,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
       "The payload type this stream is used for",
       "This is the payload type from the pad",
       0, 128, 0,
-      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
     PROP_CODEC,
@@ -239,7 +239,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
       "The FsCodec this substream is received",
       "The FsCodec currently received from this substream",
       FS_TYPE_CODEC,
-      G_PARAM_READABLE));
+      G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_RECEIVING,
@@ -247,7 +247,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
           "Whether this substream will receive any data",
           "A toggle that prevents the substream from outputting any data",
           TRUE,
-          G_PARAM_READWRITE));
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_OUTPUT_GHOSTPAD,
@@ -256,7 +256,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
           "The GstPad which is on the outside of the fsrtpconference element"
           " for this substream",
           GST_TYPE_PAD,
-          G_PARAM_READABLE));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_NO_RTCP_TIMEOUT,
@@ -266,7 +266,7 @@ fs_rtp_sub_stream_class_init (FsRtpSubStreamClass *klass)
           " is attached the FsStream, this only works if there is only one"
           " FsStream. <=0 will do nothing",
           -1, G_MAXINT, DEFAULT_NO_RTCP_TIMEOUT,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
 
   /**
diff --git a/gst/rtcpfilter/fs-rtcp-filter.c b/gst/rtcpfilter/fs-rtcp-filter.c
index 2f5dfbc..68e6d62 100644
--- a/gst/rtcpfilter/fs-rtcp-filter.c
+++ b/gst/rtcpfilter/fs-rtcp-filter.c
@@ -130,7 +130,7 @@ fs_rtcp_filter_class_init (FsRtcpFilterClass *klass)
           "Sending RTP?",
           "If set to FALSE, it assumes that all RTP has been dropped",
           FALSE,
-          G_PARAM_READWRITE));
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/tests/check/transmitter/fake-filter.c b/tests/check/transmitter/fake-filter.c
index 9537365..d3a870d 100644
--- a/tests/check/transmitter/fake-filter.c
+++ b/tests/check/transmitter/fake-filter.c
@@ -112,7 +112,7 @@ fs_fake_filter_class_init (FsFakeFilterClass *klass)
           "Sending RTP?",
           "If set to FALSE, it assumes that all RTP has been dropped",
           FALSE,
-          G_PARAM_READWRITE));
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/transmitters/nice/fs-nice-agent.c b/transmitters/nice/fs-nice-agent.c
index 7551a91..42fb4b1 100644
--- a/transmitters/nice/fs-nice-agent.c
+++ b/transmitters/nice/fs-nice-agent.c
@@ -158,15 +158,15 @@ fs_nice_agent_class_init (FsNiceAgentClass *klass)
           "The id of the stream according to libnice",
           NICE_COMPATIBILITY_DRAFT19, NICE_COMPATIBILITY_LAST,
           NICE_COMPATIBILITY_DRAFT19,
-          G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_PREFERRED_LOCAL_CANDIDATES,
       g_param_spec_boxed ("preferred-local-candidates",
-        "The preferred candidates",
-        "A GList of FsCandidates",
-        FS_TYPE_CANDIDATE_LIST,
-        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          "The preferred candidates",
+          "A GList of FsCandidates",
+          FS_TYPE_CANDIDATE_LIST,
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 7099ad1..fb19afd 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -245,7 +245,7 @@ fs_nice_stream_transmitter_class_init (FsNiceStreamTransmitterClass *klass)
           "STUN server",
           "The STUN server used to obtain server-reflexive candidates",
           NULL,
-          G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+          G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_STUN_PORT,
       g_param_spec_uint (
@@ -254,7 +254,7 @@ fs_nice_stream_transmitter_class_init (FsNiceStreamTransmitterClass *klass)
           "The STUN server used to obtain server-reflexive candidates",
           1, 65536,
           3478,
-          G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+          G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_CONTROLLING_MODE,
       g_param_spec_boolean (
@@ -262,7 +262,7 @@ fs_nice_stream_transmitter_class_init (FsNiceStreamTransmitterClass *klass)
           "ICE controlling mode",
           "Whether the agent is in controlling mode",
           TRUE,
-          G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+          G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_STREAM_ID,
       g_param_spec_uint (
@@ -271,7 +271,7 @@ fs_nice_stream_transmitter_class_init (FsNiceStreamTransmitterClass *klass)
           "The id of the stream according to libnice",
           0, G_MAXINT,
           0,
-          G_PARAM_READABLE));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_COMPATIBILITY_MODE,
       g_param_spec_uint (
@@ -280,7 +280,7 @@ fs_nice_stream_transmitter_class_init (FsNiceStreamTransmitterClass *klass)
           "The id of the stream according to libnice",
           NICE_COMPATIBILITY_DRAFT19, NICE_COMPATIBILITY_LAST,
           NICE_COMPATIBILITY_DRAFT19,
-          G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
+          G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 
   /**
    * FsNiceStreamTransmitter:relay-info:
@@ -335,7 +335,7 @@ fs_nice_stream_transmitter_class_init (FsNiceStreamTransmitterClass *klass)
           "ip/port/username/password/relay-type/component of the TURN servers"
           " in a GValueArray of GstStructures",
           NULL,
-          G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
+          G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_DEBUG,
       g_param_spec_boolean (
@@ -343,7 +343,7 @@ fs_nice_stream_transmitter_class_init (FsNiceStreamTransmitterClass *klass)
           "Enable debug messages",
           "Whether the agent should enable libnice and stun debug messages",
           FALSE,
-          G_PARAM_WRITABLE));
+          G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
 }
 
diff --git a/transmitters/rawudp/fs-rawudp-component.c b/transmitters/rawudp/fs-rawudp-component.c
index 0446199..7338c61 100644
--- a/transmitters/rawudp/fs-rawudp-component.c
+++ b/transmitters/rawudp/fs-rawudp-component.c
@@ -289,7 +289,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "The component id",
           "The id of this component",
           1, G_MAXUINT, 1,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
 
   g_object_class_install_property (gobject_class,
@@ -298,7 +298,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "Whether to send from this transmitter",
           "If set to FALSE, the transmitter will stop sending to this person",
           TRUE,
-          G_PARAM_READWRITE));
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_IP,
@@ -306,7 +306,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "The local IP of this component",
           "The IPv4 address as a x.x.x.x string",
           NULL,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_PORT,
@@ -314,7 +314,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "The local port requested for this component",
           "The IPv4 UDP port",
           1, 65535, 7078,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
 
   g_object_class_install_property (gobject_class,
@@ -323,7 +323,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "The IP address of the STUN server",
           "The IPv4 address of the STUN server as a x.x.x.x string",
           NULL,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_STUN_PORT,
@@ -331,7 +331,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "The port of the STUN server",
           "The IPv4 UDP port of the STUN server as a ",
           1, 65535, 3478,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_STUN_TIMEOUT,
@@ -339,7 +339,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "The timeout for the STUN reply",
           "How long to wait for for the STUN reply (in seconds) before giving up",
           1,  MAX_STUN_TIMEOUT, DEFAULT_STUN_TIMEOUT,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
 
   g_object_class_install_property (gobject_class,
@@ -348,7 +348,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "The transmitter object",
           "The rawudp transmitter object",
           FS_TYPE_RAWUDP_TRANSMITTER,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
 
   g_object_class_install_property (gobject_class,
@@ -357,7 +357,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "A Forced candidate",
           "This candidate is built from a user preference",
           FS_TYPE_CANDIDATE,
-          G_PARAM_WRITABLE));
+          G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_ASSOCIATE_ON_SOURCE,
@@ -366,7 +366,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "Whether to associate incoming data stream based on the"
           " source address",
           TRUE,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
 #ifdef HAVE_GUPNP
     g_object_class_install_property (gobject_class,
@@ -375,7 +375,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "Try to map ports using UPnP",
           "Tries to map ports using UPnP if enabled",
           TRUE,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_UPNP_DISCOVERY,
@@ -383,7 +383,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "Try to use UPnP to find the external IP address",
           "Tries to discovery the external IP with UPnP if stun fails",
           TRUE,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_UPNP_MAPPING_TIMEOUT,
@@ -392,7 +392,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "The UPnP port mappings expire after this period if the app has"
           " crashed (in seconds)",
           0, G_MAXUINT32, DEFAULT_UPNP_MAPPING_TIMEOUT,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_UPNP_DISCOVERY_TIMEOUT,
@@ -401,7 +401,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "After this period, UPnP discovery is considered to have failed"
           " and the local IP is returned",
           0, G_MAXUINT32, DEFAULT_UPNP_DISCOVERY_TIMEOUT,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_UPNP_IGD,
@@ -409,7 +409,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
           "The GUPnPSimpleIgdThread object",
           "This is the GUPnP IGD abstraction object",
           GUPNP_TYPE_SIMPLE_IGD_THREAD,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 #endif
 
    /**
diff --git a/transmitters/rawudp/fs-rawudp-stream-transmitter.c b/transmitters/rawudp/fs-rawudp-stream-transmitter.c
index 7dbbb91..9119054 100644
--- a/transmitters/rawudp/fs-rawudp-stream-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-stream-transmitter.c
@@ -265,7 +265,7 @@ fs_rawudp_stream_transmitter_class_init (FsRawUdpStreamTransmitterClass *klass)
           "The IP address of the STUN server",
           "The IPv4 address of the STUN server as a x.x.x.x string",
           NULL,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_STUN_PORT,
@@ -273,7 +273,7 @@ fs_rawudp_stream_transmitter_class_init (FsRawUdpStreamTransmitterClass *klass)
           "The port of the STUN server",
           "The IPv4 UDP port of the STUN server as a ",
           1, 65535, 3478,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_STUN_TIMEOUT,
@@ -281,7 +281,7 @@ fs_rawudp_stream_transmitter_class_init (FsRawUdpStreamTransmitterClass *klass)
           "The timeout for the STUN reply",
           "How long to wait for for the STUN reply (in seconds) before giving up",
           1, MAX_STUN_TIMEOUT, DEFAULT_STUN_TIMEOUT,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_UPNP_MAPPING,
@@ -295,7 +295,7 @@ fs_rawudp_stream_transmitter_class_init (FsRawUdpStreamTransmitterClass *klass)
           "Tries to map ports using UPnP if enabled",
           FALSE,
 #endif
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_UPNP_DISCOVERY,
@@ -310,7 +310,7 @@ fs_rawudp_stream_transmitter_class_init (FsRawUdpStreamTransmitterClass *klass)
           FALSE,
 #endif
 
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_UPNP_MAPPING_TIMEOUT,
@@ -319,7 +319,7 @@ fs_rawudp_stream_transmitter_class_init (FsRawUdpStreamTransmitterClass *klass)
           "The UPnP port mappings expire after this period if the app has"
           " crashed (in seconds)",
           0, G_MAXUINT32, DEFAULT_UPNP_MAPPING_TIMEOUT,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_UPNP_DISCOVERY_TIMEOUT,
@@ -328,7 +328,7 @@ fs_rawudp_stream_transmitter_class_init (FsRawUdpStreamTransmitterClass *klass)
           "After this period, UPnP discovery is considered to have failed"
           " and the local IP is returned",
           0, G_MAXUINT32, DEFAULT_UPNP_DISCOVERY_TIMEOUT,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_UPNP_REQUEST_TIMEOUT,
@@ -336,7 +336,7 @@ fs_rawudp_stream_transmitter_class_init (FsRawUdpStreamTransmitterClass *klass)
           "Timeout after which UPnP requests timeout",
           "After this delay, UPnP requests fails",
           1, 600, DEFAULT_UPNP_REQUEST_TIMEOUT,
-          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   gobject_class->dispose = fs_rawudp_stream_transmitter_dispose;
   gobject_class->finalize = fs_rawudp_stream_transmitter_finalize;
-- 
1.5.6.5



More information about the farsight-commits mailing list