[gst-cvs] gst-ffmpeg: various: add missing G_PARAM_STATIC_STRINGS flags

Stefan Kost ensonic at kemper.freedesktop.org
Tue Oct 19 07:41:58 PDT 2010


Module: gst-ffmpeg
Branch: master
Commit: 07ce1d190617fb099956849a4145825d398d4f06
URL:    http://cgit.freedesktop.org/gstreamer/gst-ffmpeg/commit/?id=07ce1d190617fb099956849a4145825d398d4f06

Author: Stefan Kost <ensonic at users.sf.net>
Date:   Tue Oct 19 17:26:08 2010 +0300

various: add missing G_PARAM_STATIC_STRINGS flags

---

 ext/ffmpeg/gstffmpegenc.c     |   15 +++++++++------
 ext/ffmpeg/gstffmpegmux.c     |    4 ++--
 ext/libpostproc/gstpostproc.c |   29 +++++++++++++++++++----------
 3 files changed, 30 insertions(+), 18 deletions(-)

diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c
index 88275d1..3a36019 100644
--- a/ext/ffmpeg/gstffmpegenc.c
+++ b/ext/ffmpeg/gstffmpegenc.c
@@ -197,25 +197,28 @@ gst_ffmpegenc_class_init (GstFFMpegEncClass * klass)
     g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BIT_RATE,
         g_param_spec_ulong ("bitrate", "Bit Rate",
             "Target Video Bitrate", 0, G_MAXULONG, DEFAULT_VIDEO_BITRATE,
-            G_PARAM_READWRITE));
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
     g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_GOP_SIZE,
         g_param_spec_int ("gop-size", "GOP Size",
             "Number of frames within one GOP", 0, G_MAXINT,
-            DEFAULT_VIDEO_GOP_SIZE, G_PARAM_READWRITE));
+            DEFAULT_VIDEO_GOP_SIZE,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
     g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ME_METHOD,
         g_param_spec_enum ("me-method", "ME Method", "Motion Estimation Method",
-            GST_TYPE_ME_METHOD, ME_EPZS, G_PARAM_READWRITE));
+            GST_TYPE_ME_METHOD, ME_EPZS,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     /* FIXME 0.11: Make this property read-only */
     g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BUFSIZE,
         g_param_spec_ulong ("buffer-size", "Buffer Size",
             "Size of the video buffers. "
             "Note: Setting this property has no effect "
-            "and is deprecated!", 0, G_MAXULONG, 0, G_PARAM_READWRITE));
+            "and is deprecated!", 0, G_MAXULONG, 0,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
     g_object_class_install_property (G_OBJECT_CLASS (klass),
         ARG_RTP_PAYLOAD_SIZE, g_param_spec_ulong ("rtp-payload-size",
             "RTP Payload Size", "Target GOB length", 0, G_MAXULONG, 0,
-            G_PARAM_READWRITE));
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     /* register additional properties, possibly dependent on the exact CODEC */
     gst_ffmpeg_cfg_install_property (klass, ARG_CFG_BASE);
@@ -223,7 +226,7 @@ gst_ffmpegenc_class_init (GstFFMpegEncClass * klass)
     g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BIT_RATE,
         g_param_spec_ulong ("bitrate", "Bit Rate",
             "Target Audio Bitrate", 0, G_MAXULONG, DEFAULT_AUDIO_BITRATE,
-            G_PARAM_READWRITE));
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   }
 
   gstelement_class->change_state = gst_ffmpegenc_change_state;
diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c
index 21f869e..bedda87 100644
--- a/ext/ffmpeg/gstffmpegmux.c
+++ b/ext/ffmpeg/gstffmpegmux.c
@@ -306,12 +306,12 @@ gst_ffmpegmux_class_init (GstFFMpegMuxClass * klass)
   g_object_class_install_property (gobject_class, PROP_PRELOAD,
       g_param_spec_int ("preload", "preload",
           "Set the initial demux-decode delay (in microseconds)", 0, G_MAXINT,
-          0, G_PARAM_READWRITE));
+          0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_MAXDELAY,
       g_param_spec_int ("maxdelay", "maxdelay",
           "Set the maximum demux-decode delay (in microseconds)", 0, G_MAXINT,
-          0, G_PARAM_READWRITE));
+          0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   gstelement_class->request_new_pad = gst_ffmpegmux_request_new_pad;
   gstelement_class->change_state = gst_ffmpegmux_change_state;
diff --git a/ext/libpostproc/gstpostproc.c b/ext/libpostproc/gstpostproc.c
index 7fa0df8..f383016 100644
--- a/ext/libpostproc/gstpostproc.c
+++ b/ext/libpostproc/gstpostproc.c
@@ -407,17 +407,19 @@ gst_post_proc_class_init (GstPostProcClass * klass)
   g_object_class_install_property (gobject_class, PROP_QUALITY,
       g_param_spec_uint ("quality", "Quality",
           "Quality level of filter (higher is better)",
-          0, PP_QUALITY_MAX, DEFAULT_QUALITY, G_PARAM_READWRITE));
+          0, PP_QUALITY_MAX, DEFAULT_QUALITY,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_AUTOQ,
       g_param_spec_boolean ("autoq", "AutoQ",
           "Automatically switch filter off if CPU too slow",
-          DEFAULT_AUTOQ, G_PARAM_READWRITE));
+          DEFAULT_AUTOQ, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_SCOPE,
       g_param_spec_enum ("scope", "Scope",
           "Operate on chrominance and/or luminance",
-          GST_TYPE_PP_SCOPE, DEFAULT_SCOPE, G_PARAM_READWRITE));
+          GST_TYPE_PP_SCOPE, DEFAULT_SCOPE,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   ppidx = klass->filterid;
   /* per filter props */
@@ -427,12 +429,14 @@ gst_post_proc_class_init (GstPostProcClass * klass)
     g_object_class_install_property (gobject_class, PROP_DIFF,
         g_param_spec_int ("difference", "Difference Factor",
             "Higher values mean more deblocking (-1 = pp default)",
-            -1, G_MAXINT, DEFAULT_DIFF, G_PARAM_READWRITE));
+            -1, G_MAXINT, DEFAULT_DIFF,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class, PROP_FLAT,
         g_param_spec_int ("flatness", "Flatness Threshold",
             "Lower values mean more deblocking (-1 = pp default)",
-            -1, G_MAXINT, DEFAULT_FLAT, G_PARAM_READWRITE));
+            -1, G_MAXINT, DEFAULT_FLAT,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     gobject_class->set_property =
         GST_DEBUG_FUNCPTR (gst_post_proc_deblock_set_property);
@@ -443,17 +447,20 @@ gst_post_proc_class_init (GstPostProcClass * klass)
     g_object_class_install_property (gobject_class, PROP_T1,
         g_param_spec_int ("threshold-1", "Threshold One",
             "Higher values mean stronger filtering (-1 = pp default)",
-            -1, G_MAXINT, DEFAULT_T1, G_PARAM_READWRITE));
+            -1, G_MAXINT, DEFAULT_T1,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class, PROP_T2,
         g_param_spec_int ("threshold-2", "Threshold Two",
             "Higher values mean stronger filtering (-1 = pp default)",
-            -1, G_MAXINT, DEFAULT_T2, G_PARAM_READWRITE));
+            -1, G_MAXINT, DEFAULT_T2,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class, PROP_T3,
         g_param_spec_int ("threshold-3", "Threshold Three",
             "Higher values mean stronger filtering (-1 = pp default)",
-            -1, G_MAXINT, DEFAULT_T3, G_PARAM_READWRITE));
+            -1, G_MAXINT, DEFAULT_T3,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     gobject_class->set_property =
         GST_DEBUG_FUNCPTR (gst_post_proc_tmpnoise_set_property);
@@ -463,7 +470,8 @@ gst_post_proc_class_init (GstPostProcClass * klass)
     /* autolevels */
     g_object_class_install_property (gobject_class, PROP_RANGE,
         g_param_spec_boolean ("fully-range", "Fully Range",
-            "Stretch luminance to (0-255)", DEFAULT_RANGE, G_PARAM_READWRITE));
+            "Stretch luminance to (0-255)", DEFAULT_RANGE,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     gobject_class->set_property =
         GST_DEBUG_FUNCPTR (gst_post_proc_autolevels_set_property);
@@ -475,7 +483,8 @@ gst_post_proc_class_init (GstPostProcClass * klass)
     g_object_class_install_property (gobject_class, PROP_QUANT,
         g_param_spec_int ("quantizer", "Force Quantizer",
             "Quantizer to use (-1 = pp default)",
-            -1, G_MAXINT, DEFAULT_QUANT, G_PARAM_READWRITE));
+            -1, G_MAXINT, DEFAULT_QUANT,
+            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     gobject_class->set_property =
         GST_DEBUG_FUNCPTR (gst_post_proc_forcequant_set_property);





More information about the Gstreamer-commits mailing list