[gst-cvs] gst-plugins-base: various: add a missing G_PARAM_STATIC_STRINGS flag to object properties

Stefan Kost ensonic at kemper.freedesktop.org
Wed Oct 13 07:01:06 PDT 2010


Module: gst-plugins-base
Branch: master
Commit: 83c14483ed6abcf57e96f07b750feb1bf8b7ed83
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=83c14483ed6abcf57e96f07b750feb1bf8b7ed83

Author: Stefan Kost <ensonic at users.sf.net>
Date:   Wed Oct 13 16:12:38 2010 +0300

various: add a missing G_PARAM_STATIC_STRINGS flag to object properties

---

 ext/theora/gsttheoraparse.c          |    4 ++--
 gst-libs/gst/audio/gstbaseaudiosrc.c |    4 ++--
 gst-libs/gst/interfaces/mixertrack.c |    2 +-
 gst/audioresample/gstaudioresample.c |    5 +++--
 gst/playback/gstinputselector.c      |   10 ++++++----
 gst/playback/gstplaybasebin.c        |    2 +-
 gst/playback/gsturidecodebin.c       |    2 +-
 gst/subparse/gstsubparse.c           |    3 ++-
 8 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/ext/theora/gsttheoraparse.c b/ext/theora/gsttheoraparse.c
index dcbe833..0ce68d9 100644
--- a/ext/theora/gsttheoraparse.c
+++ b/ext/theora/gsttheoraparse.c
@@ -137,8 +137,8 @@ gst_theora_parse_class_init (GstTheoraParseClass * klass)
           "An array of (granuletime, buffertime) pairs",
           g_param_spec_uint64 ("time", "Time",
               "Time (either granuletime or buffertime)", 0, G_MAXUINT64, 0,
-              G_PARAM_READWRITE),
-          (GParamFlags) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+              G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS),
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   gstelement_class->change_state = theora_parse_change_state;
 
diff --git a/gst-libs/gst/audio/gstbaseaudiosrc.c b/gst-libs/gst/audio/gstbaseaudiosrc.c
index 8953370..06aa3ab 100644
--- a/gst-libs/gst/audio/gstbaseaudiosrc.c
+++ b/gst-libs/gst/audio/gstbaseaudiosrc.c
@@ -193,7 +193,7 @@ gst_base_audio_src_class_init (GstBaseAudioSrcClass * klass)
       g_param_spec_int64 ("actual-buffer-time", "Actual Buffer Time",
           "Actual configured size of audio buffer in microseconds",
           DEFAULT_ACTUAL_BUFFER_TIME, G_MAXINT64, DEFAULT_ACTUAL_BUFFER_TIME,
-          G_PARAM_READABLE));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * GstBaseAudioSrc:actual-latency-time:
@@ -206,7 +206,7 @@ gst_base_audio_src_class_init (GstBaseAudioSrcClass * klass)
       g_param_spec_int64 ("actual-latency-time", "Actual Latency Time",
           "Actual configured audio latency in microseconds",
           DEFAULT_ACTUAL_LATENCY_TIME, G_MAXINT64, DEFAULT_ACTUAL_LATENCY_TIME,
-          G_PARAM_READABLE));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_PROVIDE_CLOCK,
       g_param_spec_boolean ("provide-clock", "Provide Clock",
diff --git a/gst-libs/gst/interfaces/mixertrack.c b/gst-libs/gst/interfaces/mixertrack.c
index 108f7be..c4bef1c 100644
--- a/gst-libs/gst/interfaces/mixertrack.c
+++ b/gst-libs/gst/interfaces/mixertrack.c
@@ -115,7 +115,7 @@ gst_mixer_track_class_init (GstMixerTrackClass * klass)
   g_object_class_install_property (object_klass, ARG_LABEL,
       g_param_spec_string ("label", "Track label",
           "The label assigned to the track (may be translated)", NULL,
-          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | G_PARAM_STATIC_STRINGS));
 
   /**
    * GstMixerTrack:untranslated-label
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c
index d3b465a..f61dac2 100644
--- a/gst/audioresample/gstaudioresample.c
+++ b/gst/audioresample/gstaudioresample.c
@@ -177,7 +177,7 @@ gst_audio_resample_class_init (GstAudioResampleClass * klass)
           "the lowest and 10 being the best",
           SPEEX_RESAMPLER_QUALITY_MIN, SPEEX_RESAMPLER_QUALITY_MAX,
           SPEEX_RESAMPLER_QUALITY_DEFAULT,
-          G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+          G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
 
   /* FIXME 0.11: Remove this property, it's just for compatibility
    * with old audioresample
@@ -191,7 +191,8 @@ gst_audio_resample_class_init (GstAudioResampleClass * klass)
    */
   g_object_class_install_property (gobject_class, PROP_FILTER_LENGTH,
       g_param_spec_int ("filter-length", "Filter length",
-          "Length of the resample filter", 0, G_MAXINT, 64, G_PARAM_READWRITE));
+          "Length of the resample filter", 0, G_MAXINT, 64,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   GST_BASE_TRANSFORM_CLASS (klass)->start =
       GST_DEBUG_FUNCPTR (gst_audio_resample_start);
diff --git a/gst/playback/gstinputselector.c b/gst/playback/gstinputselector.c
index cb76202..4f5c71f 100644
--- a/gst/playback/gstinputselector.c
+++ b/gst/playback/gstinputselector.c
@@ -187,18 +187,20 @@ gst_selector_pad_class_init (GstSelectorPadClass * klass)
 
   g_object_class_install_property (gobject_class, PROP_PAD_RUNNING_TIME,
       g_param_spec_int64 ("running-time", "Running time",
-          "Running time of stream on pad", 0, G_MAXINT64, 0, G_PARAM_READABLE));
+          "Running time of stream on pad", 0, G_MAXINT64, 0,
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (gobject_class, PROP_PAD_TAGS,
       g_param_spec_boxed ("tags", "Tags",
           "The currently active tags on the pad", GST_TYPE_TAG_LIST,
-          G_PARAM_READABLE));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (gobject_class, PROP_PAD_ACTIVE,
       g_param_spec_boolean ("active", "Active",
-          "If the pad is currently active", FALSE, G_PARAM_READABLE));
+          "If the pad is currently active", FALSE,
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (gobject_class, PROP_PAD_ALWAYS_OK,
       g_param_spec_boolean ("always-ok", "Always OK",
           "Make an inactive pad return OK instead of NOT_LINKED",
-          DEFAULT_PAD_ALWAYS_OK, G_PARAM_READWRITE));
+          DEFAULT_PAD_ALWAYS_OK, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c
index 2d0c69a..efb4ac0 100644
--- a/gst/playback/gstplaybasebin.c
+++ b/gst/playback/gstplaybasebin.c
@@ -175,7 +175,7 @@ gst_play_base_bin_class_init (GstPlayBaseBinClass * klass)
       g_param_spec_value_array ("stream-info-value-array",
           "StreamInfo GValueArray", "value array of streaminfo",
           g_param_spec_object ("streaminfo", "StreamInfo", "Streaminfo object",
-              GST_TYPE_STREAM_INFO, G_PARAM_READABLE),
+              GST_TYPE_STREAM_INFO, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS),
           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (gobject_klass, ARG_SOURCE,
       g_param_spec_object ("source", "Source", "Source element",
diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c
index 4ed43a0..f71c409 100644
--- a/gst/playback/gsturidecodebin.c
+++ b/gst/playback/gsturidecodebin.c
@@ -331,7 +331,7 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
 
   g_object_class_install_property (gobject_class, PROP_SOURCE,
       g_param_spec_object ("source", "Source", "Source object used",
-          GST_TYPE_ELEMENT, G_PARAM_READABLE));
+          GST_TYPE_ELEMENT, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_CONNECTION_SPEED,
       g_param_spec_uint ("connection-speed", "Connection Speed",
diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c
index 750a391..7bf0f2d 100644
--- a/gst/subparse/gstsubparse.c
+++ b/gst/subparse/gstsubparse.c
@@ -205,7 +205,8 @@ gst_sub_parse_class_init (GstSubParseClass * klass)
           "Framerate of the video stream. This is needed by some subtitle "
           "formats to synchronize subtitles and video properly. If not set "
           "and the subtitle format requires it subtitles may be out of sync.",
-          0, 1, G_MAXINT, 1, 24000, 1001, G_PARAM_READWRITE));
+          0, 1, G_MAXINT, 1, 24000, 1001,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 static void





More information about the Gstreamer-commits mailing list