From: Stefan Kost Date: Wed, 13 Oct 2010 13:25:15 +0000 (+0300) Subject: various (ext): add a missing G_PARAM_STATIC_STRINGS flags X-Git-Tag: RELEASE-0.10.26~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45f67077841d6e843f3ae264265e46bc5eff87c5;p=platform%2Fupstream%2Fgst-plugins-good.git various (ext): add a missing G_PARAM_STATIC_STRINGS flags --- diff --git a/ext/aalib/gstaasink.c b/ext/aalib/gstaasink.c index 113f5b10b..06d319958 100644 --- a/ext/aalib/gstaasink.c +++ b/ext/aalib/gstaasink.c @@ -216,37 +216,38 @@ gst_aasink_class_init (GstAASinkClass * klass) /* FIXME: add long property descriptions */ g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_WIDTH, g_param_spec_int ("width", "width", "width", G_MININT, G_MAXINT, 0, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HEIGHT, g_param_spec_int ("height", "height", "height", G_MININT, G_MAXINT, 0, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DRIVER, g_param_spec_enum ("driver", "driver", "driver", GST_TYPE_AADRIVERS, 0, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DITHER, g_param_spec_enum ("dither", "dither", "dither", GST_TYPE_AADITHER, 0, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BRIGHTNESS, g_param_spec_int ("brightness", "brightness", "brightness", G_MININT, - G_MAXINT, 0, G_PARAM_READWRITE)); + G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_CONTRAST, g_param_spec_int ("contrast", "contrast", "contrast", G_MININT, G_MAXINT, - 0, G_PARAM_READWRITE)); + 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_GAMMA, g_param_spec_float ("gamma", "gamma", "gamma", 0.0, 5.0, 1.0, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_INVERSION, g_param_spec_boolean ("inversion", "inversion", "inversion", TRUE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_RANDOMVAL, g_param_spec_int ("randomval", "randomval", "randomval", G_MININT, - G_MAXINT, 0, G_PARAM_READWRITE)); + G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FRAMES_DISPLAYED, g_param_spec_int ("frames-displayed", "frames displayed", - "frames displayed", G_MININT, G_MAXINT, 0, G_PARAM_READABLE)); + "frames displayed", G_MININT, G_MAXINT, 0, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FRAME_TIME, g_param_spec_int ("frame-time", "frame time", "frame time", G_MININT, - G_MAXINT, 0, G_PARAM_READABLE)); + G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); gst_aasink_signals[SIGNAL_FRAME_DISPLAYED] = g_signal_new ("frame-displayed", G_TYPE_FROM_CLASS (klass), diff --git a/ext/annodex/gstcmmldec.c b/ext/annodex/gstcmmldec.c index 3d5e34c2c..79b267a63 100644 --- a/ext/annodex/gstcmmldec.c +++ b/ext/annodex/gstcmmldec.c @@ -146,7 +146,7 @@ gst_cmml_dec_class_init (GstCmmlDecClass * dec_class) "Wait clip end time", "Send a tag for a clip when the clip ends, setting its end-time. " "Use when you need to know both clip's start-time and end-time.", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } static void diff --git a/ext/annodex/gstcmmlenc.c b/ext/annodex/gstcmmlenc.c index 3df58bb3f..a3255dc87 100644 --- a/ext/annodex/gstcmmlenc.c +++ b/ext/annodex/gstcmmlenc.c @@ -130,19 +130,22 @@ gst_cmml_enc_class_init (GstCmmlEncClass * enc_class) g_param_spec_int64 ("granule-rate-numerator", "Granulerate numerator", "Granulerate numerator", - 0, G_MAXINT64, 1000, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + 0, G_MAXINT64, 1000, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_ENC_GRANULERATE_D, g_param_spec_int64 ("granule-rate-denominator", "Granulerate denominator", "Granulerate denominator", - 0, G_MAXINT64, 1, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + 0, G_MAXINT64, 1, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_ENC_GRANULESHIFT, g_param_spec_uchar ("granule-shift", "Granuleshift", "The number of lower bits to use for partitioning a granule position", - 0, 64, 32, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + 0, 64, 32, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); GST_ELEMENT_CLASS (klass)->change_state = gst_cmml_enc_change_state; } diff --git a/ext/annodex/gstcmmltag.c b/ext/annodex/gstcmmltag.c index a224c6da7..2cf5d5fef 100644 --- a/ext/annodex/gstcmmltag.c +++ b/ext/annodex/gstcmmltag.c @@ -100,20 +100,22 @@ gst_cmml_tag_stream_class_init (GstCmmlTagStreamClass * stream_class) g_param_spec_string ("base-time", "Base time", "Playback time (in seconds) of the first data packet", - "0", G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + "0", G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_STREAM_UTC, g_param_spec_string ("calendar-base-time", "Calendar base time", "Date and wall-clock time (expressed as UTC time in the format " "YYYYMMDDTHHMMSS.sssZ) associated with the base-time", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_STREAM_IMPORTS, g_param_spec_value_array ("input-streams", "Input streams", "List of input streams that compose this bitstream", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_value_register_transform_func (G_TYPE_STRING, GST_TYPE_CMML_TAG_STREAM, gst_cmml_tag_stream_value_from_string_value); @@ -223,19 +225,22 @@ gst_cmml_tag_head_class_init (GstCmmlTagHeadClass * head_class) g_param_spec_string ("title", "Title", "Title of the bitstream", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_HEAD_BASE, g_param_spec_string ("base-uri", "Base URI", "Base URI of the bitstream. All relative URIs are relative to this", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_HEAD_META, g_param_spec_value_array ("meta", "Meta annotations", "Meta annotations for the complete Annodex bitstream", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_value_register_transform_func (G_TYPE_STRING, GST_TYPE_CMML_TAG_HEAD, gst_cmml_tag_head_value_from_string_value); @@ -344,68 +349,77 @@ gst_cmml_tag_clip_class_init (GstCmmlTagClipClass * clip_class) g_param_spec_boolean ("empty", "Empty clip flag", "An empty clip only marks the end of the previous clip", - TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + TRUE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_ID, g_param_spec_string ("id", "Clip id", - "Id of the clip", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + "Id of the clip", NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_TRACK, g_param_spec_string ("track", "Track number", "The track this clip belongs to", - "default", G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + "default", + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_START_TIME, g_param_spec_uint64 ("start-time", "Start time", "The start time (in seconds) of the clip", 0, G_MAXUINT64, GST_CLOCK_TIME_NONE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_END_TIME, g_param_spec_uint64 ("end-time", "End time", "The end time (in seconds) of the clip (only set if extract-mode=true)", 0, G_MAXUINT64, GST_CLOCK_TIME_NONE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_ANCHOR_HREF, g_param_spec_string ("anchor-uri", "Anchor URI", "The location of a Web resource closely connected to the clip", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_ANCHOR_TEXT, g_param_spec_string ("anchor-text", "Anchor text", "A short description of the resource pointed by anchor-uri", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_IMG_SRC, g_param_spec_string ("img-uri", "Image URI", "The URI of a representative image for the clip", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_IMG_ALT, g_param_spec_string ("img-alt", "Image alternative text", "Alternative text to be displayed instead of the image " - "specified in img-uri", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + "specified in img-uri", NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_DESC_TEXT, g_param_spec_string ("description", "Description", "A textual description of the content of the clip", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (klass, GST_CMML_TAG_CLIP_META, g_param_spec_value_array ("meta", "Meta annotations", "Meta annotations for the clip", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_value_register_transform_func (G_TYPE_STRING, GST_TYPE_CMML_TAG_CLIP, gst_cmml_tag_clip_value_from_string_value); diff --git a/ext/cairo/gsttextoverlay.c b/ext/cairo/gsttextoverlay.c index 0db4444be..364b8bae9 100644 --- a/ext/cairo/gsttextoverlay.c +++ b/ext/cairo/gsttextoverlay.c @@ -158,44 +158,47 @@ gst_text_overlay_class_init (GstCairoTextOverlayClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_TEXT, g_param_spec_string ("text", "text", - "Text to be display.", "", G_PARAM_WRITABLE)); + "Text to be display.", "", + G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SHADING, g_param_spec_boolean ("shaded-background", "shaded background", "Whether to shade the background under the text area", FALSE, - G_PARAM_WRITABLE)); + G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VALIGN, g_param_spec_string ("valign", "vertical alignment", "Vertical alignment of the text. " "Can be either 'baseline', 'bottom', or 'top'", - "baseline", G_PARAM_WRITABLE)); + "baseline", G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HALIGN, g_param_spec_string ("halign", "horizontal alignment", "Horizontal alignment of the text. " "Can be either 'left', 'right', or 'center'", - "center", G_PARAM_WRITABLE)); + "center", G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_XPAD, g_param_spec_int ("xpad", "horizontal paddding", "Horizontal paddding when using left/right alignment", - G_MININT, G_MAXINT, DEFAULT_XPAD, G_PARAM_WRITABLE)); + G_MININT, G_MAXINT, DEFAULT_XPAD, + G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_YPAD, g_param_spec_int ("ypad", "vertical padding", "Vertical padding when using top/bottom alignment", - G_MININT, G_MAXINT, DEFAULT_YPAD, G_PARAM_WRITABLE)); + G_MININT, G_MAXINT, DEFAULT_YPAD, + G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DELTAX, g_param_spec_int ("deltax", "X position modifier", "Shift X position to the left or to the right. Unit is pixels.", - G_MININT, G_MAXINT, 0, G_PARAM_WRITABLE)); + G_MININT, G_MAXINT, 0, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DELTAY, g_param_spec_int ("deltay", "Y position modifier", "Shift Y position up or down. Unit is pixels.", - G_MININT, G_MAXINT, 0, G_PARAM_WRITABLE)); + G_MININT, G_MAXINT, 0, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FONT_DESC, g_param_spec_string ("font-desc", "font description", "Pango font description of font " "to be used for rendering. " "See documentation of " "pango_font_description_from_string" - " for syntax.", "", G_PARAM_WRITABLE)); + " for syntax.", "", G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); } static void diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index 9ffb0f4d2..e7fd946ce 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -194,16 +194,18 @@ gst_dvdec_class_init (GstDVDecClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_CLAMP_LUMA, g_param_spec_boolean ("clamp-luma", "Clamp luma", "Clamp luma", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_CLAMP_CHROMA, g_param_spec_boolean ("clamp-chroma", "Clamp chroma", "Clamp chroma", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_QUALITY, g_param_spec_enum ("quality", "Quality", "Decoding quality", - GST_TYPE_DVDEC_QUALITY, DV_DEFAULT_QUALITY, G_PARAM_READWRITE)); + GST_TYPE_DVDEC_QUALITY, DV_DEFAULT_QUALITY, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DECODE_NTH, g_param_spec_int ("drop-factor", "Drop Factor", "Only decode Nth frame", - 1, G_MAXINT, DV_DEFAULT_DECODE_NTH, G_PARAM_READWRITE)); + 1, G_MAXINT, DV_DEFAULT_DECODE_NTH, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = gst_dvdec_change_state; } diff --git a/ext/esd/esdmon.c b/ext/esd/esdmon.c index 33e7a6de0..9cf9e7a26 100644 --- a/ext/esd/esdmon.c +++ b/ext/esd/esdmon.c @@ -187,21 +187,23 @@ gst_esdmon_class_init (gpointer g_class, gpointer class_data) /* FIXME: add long property descriptions */ g_object_class_install_property (gobject_class, ARG_BYTESPERREAD, g_param_spec_ulong ("bytes-per-read", "bytes per read", "bytes per read", - 0, G_MAXULONG, 0, G_PARAM_READWRITE)); + 0, G_MAXULONG, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_CUROFFSET, g_param_spec_ulong ("curoffset", "curoffset", "curoffset", - 0, G_MAXULONG, 0, G_PARAM_READABLE)); + 0, G_MAXULONG, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DEPTH, g_param_spec_enum ("depth", "depth", "depth", GST_TYPE_ESDMON_DEPTHS, - 16, G_PARAM_READWRITE)); + 16, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_CHANNELS, g_param_spec_enum ("channels", "channels", "channels", - GST_TYPE_ESDMON_CHANNELS, 2, G_PARAM_READWRITE)); + GST_TYPE_ESDMON_CHANNELS, 2, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_RATE, g_param_spec_int ("frequency", "frequency", "frequency", - G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); + G_MININT, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_HOST, - g_param_spec_string ("host", "host", "host", NULL, G_PARAM_READWRITE)); + g_param_spec_string ("host", "host", "host", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gobject_class->set_property = gst_esdmon_set_property; gobject_class->get_property = gst_esdmon_get_property; diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c index caabd92ea..e6bc45871 100644 --- a/ext/esd/esdsink.c +++ b/ext/esd/esdsink.c @@ -150,7 +150,8 @@ gst_esdsink_class_init (GstEsdSinkClass * klass) /* default value is filled in the _init method */ g_object_class_install_property (gobject_class, PROP_HOST, g_param_spec_string ("host", "Host", - "The host running the esound daemon", NULL, G_PARAM_READWRITE)); + "The host running the esound daemon", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } static void diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index c62f465e8..35a6bf3a9 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -294,72 +294,73 @@ gst_flac_enc_class_init (GstFlacEncClass * klass) "Quality", "Speed versus compression tradeoff", GST_TYPE_FLAC_ENC_QUALITY, DEFAULT_QUALITY, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_STREAMABLE_SUBSET, g_param_spec_boolean ("streamable-subset", "Streamable subset", "true to limit encoder to generating a Subset stream, else false", - TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + TRUE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_MID_SIDE_STEREO, g_param_spec_boolean ("mid-side-stereo", "Do mid side stereo", "Do mid side stereo (only for stereo input)", flacenc_params[DEFAULT_QUALITY].mid_side, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_LOOSE_MID_SIDE_STEREO, g_param_spec_boolean ("loose-mid-side-stereo", "Loose mid side stereo", "Loose mid side stereo", flacenc_params[DEFAULT_QUALITY].loose_mid_side, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BLOCKSIZE, g_param_spec_uint ("blocksize", "Blocksize", "Blocksize in samples", FLAC__MIN_BLOCK_SIZE, FLAC__MAX_BLOCK_SIZE, flacenc_params[DEFAULT_QUALITY].blocksize, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_MAX_LPC_ORDER, g_param_spec_uint ("max-lpc-order", "Max LPC order", "Max LPC order; 0 => use only fixed predictors", 0, FLAC__MAX_LPC_ORDER, flacenc_params[DEFAULT_QUALITY].max_lpc_order, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_QLP_COEFF_PRECISION, g_param_spec_uint ("qlp-coeff-precision", "QLP coefficients precision", "Precision in bits of quantized linear-predictor coefficients; 0 = automatic", 0, 32, flacenc_params[DEFAULT_QUALITY].qlp_coeff_precision, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_QLP_COEFF_PREC_SEARCH, g_param_spec_boolean ("qlp-coeff-prec-search", "Do QLP coefficients precision search", "false = use qlp_coeff_precision, " "true = search around qlp_coeff_precision, take best", flacenc_params[DEFAULT_QUALITY].qlp_coeff_prec_search, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_ESCAPE_CODING, g_param_spec_boolean ("escape-coding", "Do Escape coding", "search for escape codes in the entropy coding stage " "for slightly better compression", flacenc_params[DEFAULT_QUALITY].escape_coding, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_EXHAUSTIVE_MODEL_SEARCH, g_param_spec_boolean ("exhaustive-model-search", "Do exhaustive model search", "do exhaustive search of LP coefficient quantization (expensive!)", flacenc_params[DEFAULT_QUALITY].exhaustive_model_search, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_MIN_RESIDUAL_PARTITION_ORDER, g_param_spec_uint ("min-residual-partition-order", "Min residual partition order", "Min residual partition order (above 4 doesn't usually help much)", 0, 16, flacenc_params[DEFAULT_QUALITY].min_residual_partition_order, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_MAX_RESIDUAL_PARTITION_ORDER, g_param_spec_uint ("max-residual-partition-order", "Max residual partition order", "Max residual partition order (above 4 doesn't usually help much)", 0, 16, flacenc_params[DEFAULT_QUALITY].max_residual_partition_order, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_RICE_PARAMETER_SEARCH_DIST, g_param_spec_uint ("rice-parameter-search-dist", @@ -367,7 +368,7 @@ gst_flac_enc_class_init (GstFlacEncClass * klass) "0 = try only calc'd parameter k; else try all [k-dist..k+dist] " "parameters, use best", 0, FLAC__MAX_RICE_PARTITION_ORDER, flacenc_params[DEFAULT_QUALITY].rice_parameter_search_dist, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GstFlacEnc:padding @@ -381,7 +382,8 @@ gst_flac_enc_class_init (GstFlacEncClass * klass) g_param_spec_uint ("padding", "Padding", "Write a PADDING block with this length in bytes", 0, G_MAXUINT, - DEFAULT_PADDING, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + DEFAULT_PADDING, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GstFlacEnc:seekpoints @@ -397,7 +399,8 @@ gst_flac_enc_class_init (GstFlacEncClass * klass) "Seekpoints", "Add SEEKTABLE metadata (if > 0, number of entries, if < 0, interval in sec)", -G_MAXINT, G_MAXINT, - DEFAULT_SEEKPOINTS, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + DEFAULT_SEEKPOINTS, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = gst_flac_enc_change_state; } diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c index 5c93a3ffd..51c24a1ca 100644 --- a/ext/gdk_pixbuf/gstgdkpixbuf.c +++ b/ext/gdk_pixbuf/gstgdkpixbuf.c @@ -182,7 +182,8 @@ gst_gdk_pixbuf_class_init (GstGdkPixbufClass * klass) g_object_class_install_property (gobject_class, ARG_SILENT, g_param_spec_boolean ("silent", "Silent", - "Produce verbose output ? (deprecated)", FALSE, G_PARAM_READWRITE)); + "Produce verbose output ? (deprecated)", FALSE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_gdk_pixbuf_change_state); diff --git a/ext/gdk_pixbuf/gstgdkpixbufsink.c b/ext/gdk_pixbuf/gstgdkpixbufsink.c index 3258358a7..f18d3c183 100644 --- a/ext/gdk_pixbuf/gstgdkpixbufsink.c +++ b/ext/gdk_pixbuf/gstgdkpixbufsink.c @@ -164,7 +164,7 @@ gst_gdk_pixbuf_sink_class_init (GstGdkPixbufSinkClass * klass) g_param_spec_boolean ("send-messages", "Send Messages", "Whether to post messages containing pixbufs on the bus " " (deprecated, use post-messages)", - DEFAULT_SEND_MESSAGES, G_PARAM_READWRITE)); + DEFAULT_SEND_MESSAGES, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstGdkPixbuf:post-messages: * @@ -175,11 +175,12 @@ gst_gdk_pixbuf_sink_class_init (GstGdkPixbufSinkClass * klass) g_object_class_install_property (gobject_class, PROP_POST_MESSAGES, g_param_spec_boolean ("post-messages", "Post Messages", "Whether to post messages containing pixbufs on the bus", - DEFAULT_POST_MESSAGES, G_PARAM_READWRITE)); + DEFAULT_POST_MESSAGES, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_LAST_PIXBUF, g_param_spec_object ("last-pixbuf", "Last Pixbuf", - "Last GdkPixbuf object rendered", GDK_TYPE_PIXBUF, G_PARAM_READABLE)); + "Last GdkPixbuf object rendered", GDK_TYPE_PIXBUF, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); basesink_class->start = GST_DEBUG_FUNCPTR (gst_gdk_pixbuf_sink_start); basesink_class->stop = GST_DEBUG_FUNCPTR (gst_gdk_pixbuf_sink_stop); diff --git a/ext/gdk_pixbuf/pixbufscale.c b/ext/gdk_pixbuf/pixbufscale.c index d8d980823..bedd98252 100644 --- a/ext/gdk_pixbuf/pixbufscale.c +++ b/ext/gdk_pixbuf/pixbufscale.c @@ -144,7 +144,7 @@ gst_pixbufscale_class_init (GstPixbufScaleClass * klass) ARG_METHOD, g_param_spec_enum ("method", "method", "method", GST_TYPE_PIXBUFSCALE_METHOD, GST_PIXBUFSCALE_BILINEAR, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); trans_class->transform_caps = GST_DEBUG_FUNCPTR (gst_pixbufscale_transform_caps); diff --git a/ext/hal/gsthalaudiosink.c b/ext/hal/gsthalaudiosink.c index a0090374b..24b29da8b 100644 --- a/ext/hal/gsthalaudiosink.c +++ b/ext/hal/gsthalaudiosink.c @@ -95,7 +95,8 @@ gst_hal_audio_sink_class_init (GstHalAudioSinkClass * klass) g_object_class_install_property (oklass, PROP_UDI, g_param_spec_string ("udi", - "UDI", "Unique Device Id", NULL, G_PARAM_READWRITE)); + "UDI", "Unique Device Id", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } /* diff --git a/ext/hal/gsthalaudiosrc.c b/ext/hal/gsthalaudiosrc.c index 5108f7de4..de8784813 100644 --- a/ext/hal/gsthalaudiosrc.c +++ b/ext/hal/gsthalaudiosrc.c @@ -97,7 +97,8 @@ gst_hal_audio_src_class_init (GstHalAudioSrcClass * klass) g_object_class_install_property (oklass, PROP_UDI, g_param_spec_string ("udi", - "UDI", "Unique Device Id", NULL, G_PARAM_READWRITE)); + "UDI", "Unique Device Id", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } /* diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 58d3ee1fa..50febc4e6 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -189,7 +189,8 @@ gst_jpeg_dec_class_init (GstJpegDecClass * klass) g_object_class_install_property (gobject_class, PROP_IDCT_METHOD, g_param_spec_enum ("idct-method", "IDCT Method", "The IDCT algorithm to use", GST_TYPE_IDCT_METHOD, - JPEG_DEFAULT_IDCT_METHOD, G_PARAM_READWRITE)); + JPEG_DEFAULT_IDCT_METHOD, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_jpeg_dec_change_state); diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c index 1666c19c5..8f8196417 100644 --- a/ext/jpeg/gstjpegenc.c +++ b/ext/jpeg/gstjpegenc.c @@ -173,19 +173,22 @@ gst_jpegenc_class_init (GstJpegEnc * klass) g_object_class_install_property (gobject_class, PROP_QUALITY, g_param_spec_int ("quality", "Quality", "Quality of encoding", - 0, 100, JPEG_DEFAULT_QUALITY, G_PARAM_READWRITE)); + 0, 100, JPEG_DEFAULT_QUALITY, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); #ifdef ENABLE_SMOOTHING /* disabled, since it doesn't seem to work */ g_object_class_install_property (gobject_class, PROP_SMOOTHING, g_param_spec_int ("smoothing", "Smoothing", "Smoothing factor", - 0, 100, JPEG_DEFAULT_SMOOTHING, G_PARAM_READWRITE)); + 0, 100, JPEG_DEFAULT_SMOOTHING, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); #endif g_object_class_install_property (gobject_class, PROP_IDCT_METHOD, g_param_spec_enum ("idct-method", "IDCT Method", "The IDCT algorithm to use", GST_TYPE_IDCT_METHOD, - JPEG_DEFAULT_IDCT_METHOD, G_PARAM_READWRITE)); + JPEG_DEFAULT_IDCT_METHOD, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = gst_jpegenc_change_state; diff --git a/ext/jpeg/gstsmokeenc.c b/ext/jpeg/gstsmokeenc.c index 0df2be966..2acddc6ba 100644 --- a/ext/jpeg/gstsmokeenc.c +++ b/ext/jpeg/gstsmokeenc.c @@ -149,17 +149,20 @@ gst_smokeenc_class_init (GstSmokeEnc * klass) g_object_class_install_property (gobject_class, PROP_MIN_QUALITY, g_param_spec_int ("qmin", "Qmin", "Minimum quality", - 0, 100, DEFAULT_PROP_MIN_QUALITY, G_PARAM_READWRITE)); + 0, 100, DEFAULT_PROP_MIN_QUALITY, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_MAX_QUALITY, g_param_spec_int ("qmax", "Qmax", "Maximum quality", - 0, 100, DEFAULT_PROP_MAX_QUALITY, G_PARAM_READWRITE)); + 0, 100, DEFAULT_PROP_MAX_QUALITY, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_THRESHOLD, g_param_spec_int ("threshold", "Threshold", "Motion estimation threshold", - 0, 100000000, DEFAULT_PROP_THRESHOLD, G_PARAM_READWRITE)); + 0, 100000000, DEFAULT_PROP_THRESHOLD, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_KEYFRAME, g_param_spec_int ("keyframe", "Keyframe", "Insert keyframe every N frames", 1, 100000, - DEFAULT_PROP_KEYFRAME, G_PARAM_READWRITE)); + DEFAULT_PROP_KEYFRAME, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_smokeenc_change_state); diff --git a/ext/libcaca/gstcacasink.c b/ext/libcaca/gstcacasink.c index 829059d1b..ee05b36cc 100644 --- a/ext/libcaca/gstcacasink.c +++ b/ext/libcaca/gstcacasink.c @@ -175,17 +175,20 @@ gst_cacasink_class_init (GstCACASinkClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SCREEN_WIDTH, g_param_spec_int ("screen-width", "Screen Width", "The width of the screen", 0, G_MAXINT, GST_CACA_DEFAULT_SCREEN_WIDTH, - G_PARAM_READABLE)); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SCREEN_HEIGHT, g_param_spec_int ("screen-height", "Screen Height", "The height of the screen", 0, G_MAXINT, - GST_CACA_DEFAULT_SCREEN_HEIGHT, G_PARAM_READABLE)); + GST_CACA_DEFAULT_SCREEN_HEIGHT, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DITHER, g_param_spec_enum ("dither", "Dither Type", "Set type of Dither", - GST_TYPE_CACADITHER, CACA_DITHERING_NONE, G_PARAM_READWRITE)); + GST_TYPE_CACADITHER, CACA_DITHERING_NONE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ANTIALIASING, g_param_spec_boolean ("anti-aliasing", "Anti Aliasing", - "Enables Anti-Aliasing", TRUE, G_PARAM_READWRITE)); + "Enables Anti-Aliasing", TRUE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_cacasink_setcaps); gstbasesink_class->get_times = GST_DEBUG_FUNCPTR (gst_cacasink_get_times); diff --git a/ext/libpng/gstpngenc.c b/ext/libpng/gstpngenc.c index 770d47e51..2882e5f0c 100644 --- a/ext/libpng/gstpngenc.c +++ b/ext/libpng/gstpngenc.c @@ -124,19 +124,19 @@ gst_pngenc_class_init (GstPngEncClass * klass) g_object_class_install_property (gobject_class, ARG_SNAPSHOT, g_param_spec_boolean ("snapshot", "Snapshot", "Send EOS after encoding a frame, useful for snapshots", - DEFAULT_SNAPSHOT, (GParamFlags) G_PARAM_READWRITE)); + DEFAULT_SNAPSHOT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* g_object_class_install_property (gobject_class, ARG_NEWMEDIA, */ /* g_param_spec_boolean ("newmedia", "newmedia", */ /* "Send new media discontinuity after encoding each frame", */ -/* DEFAULT_NEWMEDIA, (GParamFlags) G_PARAM_READWRITE)); */ +/* DEFAULT_NEWMEDIA, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); */ - g_object_class_install_property - (gobject_class, ARG_COMPRESSION_LEVEL, + g_object_class_install_property (gobject_class, ARG_COMPRESSION_LEVEL, g_param_spec_uint ("compression-level", "compression-level", "PNG compression level", Z_NO_COMPRESSION, Z_BEST_COMPRESSION, - DEFAULT_COMPRESSION_LEVEL, (GParamFlags) G_PARAM_READWRITE)); + DEFAULT_COMPRESSION_LEVEL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); GST_DEBUG_CATEGORY_INIT (pngenc_debug, "pngenc", 0, "PNG image encoder"); } diff --git a/ext/mikmod/gstmikmod.c b/ext/mikmod/gstmikmod.c index a1810740e..6b2dfa917 100644 --- a/ext/mikmod/gstmikmod.c +++ b/ext/mikmod/gstmikmod.c @@ -150,44 +150,44 @@ gst_mikmod_class_init (GstMikModClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SONGNAME, g_param_spec_string ("songname", "songname", "songname", - NULL, G_PARAM_READABLE)); + NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MODTYPE, g_param_spec_string ("modtype", "modtype", "modtype", - NULL, G_PARAM_READABLE)); + NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MUSICVOLUME, g_param_spec_int ("musicvolume", "musivolume", "musicvolume", - 0, 128, 128, G_PARAM_READWRITE)); + 0, 128, 128, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PANSEP, g_param_spec_int ("pansep", "pansep", "pansep", - 0, 128, 128, G_PARAM_READWRITE)); + 0, 128, 128, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_REVERB, g_param_spec_int ("reverb", "reverb", "reverb", - 0, 15, 0, G_PARAM_READWRITE)); + 0, 15, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SNDFXVOLUME, g_param_spec_int ("sndfxvolume", "sndfxvolume", "sndfxvolume", - 0, 128, 128, G_PARAM_READWRITE)); + 0, 128, 128, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VOLUME, g_param_spec_int ("volume", "volume", "volume", - 0, 128, 96, G_PARAM_READWRITE)); + 0, 128, 96, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_INTERP, g_param_spec_boolean ("interp", "interp", "interp", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_REVERSE, g_param_spec_boolean ("reverse", "reverse", "reverse", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SURROUND, g_param_spec_boolean ("surround", "surround", "surround", - TRUE, G_PARAM_READWRITE)); + TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HQMIXER, g_param_spec_boolean ("hqmixer", "hqmixer", "hqmixer", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SOFT_MUSIC, g_param_spec_boolean ("soft-music", "soft music", "soft music", - TRUE, G_PARAM_READWRITE)); + TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SOFT_SNDFX, g_param_spec_boolean ("soft-sndfx", "soft sndfx", "soft sndfx", - TRUE, G_PARAM_READWRITE)); + TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gobject_class->set_property = gst_mikmod_set_property; diff --git a/ext/raw1394/gstdv1394src.c b/ext/raw1394/gstdv1394src.c index 6a8e0c3f2..16c4326a1 100644 --- a/ext/raw1394/gstdv1394src.c +++ b/ext/raw1394/gstdv1394src.c @@ -208,29 +208,30 @@ gst_dv1394src_class_init (GstDV1394SrcClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PORT, g_param_spec_int ("port", "Port", "Port number (-1 automatic)", - -1, 16, DEFAULT_PORT, G_PARAM_READWRITE)); + -1, 16, DEFAULT_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_CHANNEL, g_param_spec_int ("channel", "Channel", "Channel number for listening", - 0, 64, DEFAULT_CHANNEL, G_PARAM_READWRITE)); + 0, 64, DEFAULT_CHANNEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_CONSECUTIVE, g_param_spec_int ("consecutive", "consecutive frames", "send n consecutive frames after skipping", 1, G_MAXINT, - DEFAULT_CONSECUTIVE, G_PARAM_READWRITE)); + DEFAULT_CONSECUTIVE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SKIP, g_param_spec_int ("skip", "skip frames", "skip n frames", - 0, G_MAXINT, DEFAULT_SKIP, G_PARAM_READWRITE)); + 0, G_MAXINT, DEFAULT_SKIP, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DROP_INCOMPLETE, g_param_spec_boolean ("drop-incomplete", "drop incomplete", "drop incomplete frames", DEFAULT_DROP_INCOMPLETE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_USE_AVC, g_param_spec_boolean ("use-avc", "Use AV/C", "Use AV/C VTR control", - DEFAULT_USE_AVC, G_PARAM_READWRITE)); + DEFAULT_USE_AVC, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_GUID, g_param_spec_uint64 ("guid", "GUID", "select one of multiple DV devices by its GUID. use a hexadecimal " "like 0xhhhhhhhhhhhhhhhh. (0 = no guid)", 0, G_MAXUINT64, - DEFAULT_GUID, G_PARAM_READWRITE)); + DEFAULT_GUID, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstDV1394Src:device-name * @@ -240,7 +241,8 @@ gst_dv1394src_class_init (GstDV1394SrcClass * klass) **/ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DEVICE_NAME, g_param_spec_string ("device-name", "device name", - "user-friendly name of the device", "Default", G_PARAM_READABLE)); + "user-friendly name of the device", "Default", + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); gstbasesrc_class->negotiate = NULL; gstbasesrc_class->start = gst_dv1394src_start; diff --git a/ext/raw1394/gsthdv1394src.c b/ext/raw1394/gsthdv1394src.c index 1d396593b..d701afba3 100644 --- a/ext/raw1394/gsthdv1394src.c +++ b/ext/raw1394/gsthdv1394src.c @@ -166,18 +166,18 @@ gst_hdv1394src_class_init (GstHDV1394SrcClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PORT, g_param_spec_int ("port", "Port", "Port number (-1 automatic)", - -1, 16, DEFAULT_PORT, G_PARAM_READWRITE)); + -1, 16, DEFAULT_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_CHANNEL, g_param_spec_int ("channel", "Channel", "Channel number for listening", - 0, 64, DEFAULT_CHANNEL, G_PARAM_READWRITE)); + 0, 64, DEFAULT_CHANNEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_USE_AVC, g_param_spec_boolean ("use-avc", "Use AV/C", "Use AV/C VTR control", - DEFAULT_USE_AVC, G_PARAM_READWRITE)); + DEFAULT_USE_AVC, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_GUID, g_param_spec_uint64 ("guid", "GUID", "select one of multiple DV devices by its GUID. use a hexadecimal " "like 0xhhhhhhhhhhhhhhhh. (0 = no guid)", 0, G_MAXUINT64, - DEFAULT_GUID, G_PARAM_READWRITE)); + DEFAULT_GUID, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstHDV1394Src:device-name * @@ -187,7 +187,8 @@ gst_hdv1394src_class_init (GstHDV1394SrcClass * klass) **/ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DEVICE_NAME, g_param_spec_string ("device-name", "device name", - "user-friendly name of the device", "Default", G_PARAM_READABLE)); + "user-friendly name of the device", "Default", + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); gstbasesrc_class->negotiate = NULL; gstbasesrc_class->start = gst_hdv1394src_start; diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c index 26f4130a9..9a6363bb5 100644 --- a/ext/shout2/gstshout2.c +++ b/ext/shout2/gstshout2.c @@ -187,50 +187,52 @@ gst_shout2send_class_init (GstShout2sendClass * klass) gobject_class->finalize = (GObjectFinalizeFunc) gst_shout2send_finalize; g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_IP, - g_param_spec_string ("ip", "ip", "ip", DEFAULT_IP, G_PARAM_READWRITE)); + g_param_spec_string ("ip", "ip", "ip", DEFAULT_IP, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT, g_param_spec_int ("port", "port", "port", 1, G_MAXUSHORT, DEFAULT_PORT, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PASSWORD, g_param_spec_string ("password", "password", "password", DEFAULT_PASSWORD, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_USERNAME, g_param_spec_string ("username", "username", "username", DEFAULT_USERNAME, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* metadata */ g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PUBLIC, g_param_spec_boolean ("public", "public", "If the stream should be listed on the server's stream directory", - DEFAULT_PUBLIC, G_PARAM_READWRITE)); + DEFAULT_PUBLIC, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_STREAMNAME, g_param_spec_string ("streamname", "streamname", "name of the stream", - DEFAULT_STREAMNAME, G_PARAM_READWRITE)); + DEFAULT_STREAMNAME, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DESCRIPTION, g_param_spec_string ("description", "description", "description", - DEFAULT_DESCRIPTION, G_PARAM_READWRITE)); + DEFAULT_DESCRIPTION, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_GENRE, g_param_spec_string ("genre", "genre", "genre", DEFAULT_GENRE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PROTOCOL, g_param_spec_enum ("protocol", "protocol", "Connection Protocol to use", - GST_TYPE_SHOUT_PROTOCOL, DEFAULT_PROTOCOL, G_PARAM_READWRITE)); + GST_TYPE_SHOUT_PROTOCOL, DEFAULT_PROTOCOL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* icecast only */ g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MOUNT, g_param_spec_string ("mount", "mount", "mount", DEFAULT_MOUNT, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_URL, g_param_spec_string ("url", "url", "url", DEFAULT_URL, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* signals */ gst_shout2send_signals[SIGNAL_CONNECTION_PROBLEM] = diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 236d87b45..9eb6bd2da 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -219,51 +219,54 @@ gst_soup_http_src_class_init (GstSoupHTTPSrcClass * klass) g_object_class_install_property (gobject_class, PROP_LOCATION, g_param_spec_string ("location", "Location", - "Location to read from", "", G_PARAM_READWRITE)); + "Location to read from", "", + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_USER_AGENT, g_param_spec_string ("user-agent", "User-Agent", "Value of the User-Agent HTTP request header field", - DEFAULT_USER_AGENT, G_PARAM_READWRITE)); + DEFAULT_USER_AGENT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_AUTOMATIC_REDIRECT, g_param_spec_boolean ("automatic-redirect", "automatic-redirect", "Automatically follow HTTP redirects (HTTP Status Code 3xx)", - TRUE, G_PARAM_READWRITE)); + TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_PROXY, g_param_spec_string ("proxy", "Proxy", - "HTTP proxy server URI", "", G_PARAM_READWRITE)); + "HTTP proxy server URI", "", + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_USER_ID, g_param_spec_string ("user-id", "user-id", "HTTP location URI user id for authentication", "", - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_USER_PW, g_param_spec_string ("user-pw", "user-pw", "HTTP location URI user password for authentication", "", - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_PROXY_ID, g_param_spec_string ("proxy-id", "proxy-id", - "HTTP proxy URI user id for authentication", "", G_PARAM_READWRITE)); + "HTTP proxy URI user id for authentication", "", + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_PROXY_PW, g_param_spec_string ("proxy-pw", "proxy-pw", "HTTP proxy URI user password for authentication", "", - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_COOKIES, g_param_spec_boxed ("cookies", "Cookies", "HTTP request cookies", - G_TYPE_STRV, G_PARAM_READWRITE)); + G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_IS_LIVE, g_param_spec_boolean ("is-live", "is-live", "Act like a live source", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_TIMEOUT, g_param_spec_uint ("timeout", "timeout", "Value in seconds to timeout a blocking I/O (0 = No timeout).", 0, - 3600, 0, G_PARAM_READWRITE)); + 3600, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_EXTRA_HEADERS, g_param_spec_boxed ("extra-headers", "Extra Headers", "Extra headers to append to the HTTP request", - GST_TYPE_STRUCTURE, G_PARAM_READWRITE)); + GST_TYPE_STRUCTURE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* icecast stuff */ g_object_class_install_property (gobject_class, @@ -271,25 +274,29 @@ gst_soup_http_src_class_init (GstSoupHTTPSrcClass * klass) g_param_spec_boolean ("iradio-mode", "iradio-mode", "Enable internet radio mode (extraction of shoutcast/icecast metadata)", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_IRADIO_NAME, g_param_spec_string ("iradio-name", - "iradio-name", "Name of the stream", NULL, G_PARAM_READABLE)); + "iradio-name", "Name of the stream", NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_IRADIO_GENRE, g_param_spec_string ("iradio-genre", - "iradio-genre", "Genre of the stream", NULL, G_PARAM_READABLE)); + "iradio-genre", "Genre of the stream", NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_IRADIO_URL, g_param_spec_string ("iradio-url", "iradio-url", - "Homepage URL for radio stream", NULL, G_PARAM_READABLE)); + "Homepage URL for radio stream", NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_IRADIO_TITLE, g_param_spec_string ("iradio-title", "iradio-title", - "Name of currently playing song", NULL, G_PARAM_READABLE)); + "Name of currently playing song", NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_soup_http_src_start); gstbasesrc_class->stop = GST_DEBUG_FUNCPTR (gst_soup_http_src_stop); diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c index 89293a37a..ef2300fed 100644 --- a/ext/speex/gstspeexdec.c +++ b/ext/speex/gstspeexdec.c @@ -128,7 +128,7 @@ gst_speex_dec_class_init (GstSpeexDecClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ENH, g_param_spec_boolean ("enh", "Enh", "Enable perceptual enhancement", - DEFAULT_ENH, G_PARAM_READWRITE)); + DEFAULT_ENH, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = GST_DEBUG_FUNCPTR (speex_dec_change_state); diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c index b8cb8728d..4a0bba614 100644 --- a/ext/speex/gstspeexenc.c +++ b/ext/speex/gstspeexenc.c @@ -197,39 +197,48 @@ gst_speex_enc_class_init (GstSpeexEncClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_QUALITY, g_param_spec_float ("quality", "Quality", "Encoding quality", - 0.0, 10.0, DEFAULT_QUALITY, G_PARAM_READWRITE)); + 0.0, 10.0, DEFAULT_QUALITY, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BITRATE, g_param_spec_int ("bitrate", "Encoding Bit-rate", "Specify an encoding bit-rate (in bps). (0 = automatic)", - 0, G_MAXINT, DEFAULT_BITRATE, G_PARAM_READWRITE)); + 0, G_MAXINT, DEFAULT_BITRATE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_MODE, g_param_spec_enum ("mode", "Mode", "The encoding mode", GST_TYPE_SPEEX_ENC_MODE, GST_SPEEX_ENC_MODE_AUTO, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_VBR, g_param_spec_boolean ("vbr", "VBR", - "Enable variable bit-rate", DEFAULT_VBR, G_PARAM_READWRITE)); + "Enable variable bit-rate", DEFAULT_VBR, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_ABR, g_param_spec_int ("abr", "ABR", "Enable average bit-rate (0 = disabled)", - 0, G_MAXINT, DEFAULT_ABR, G_PARAM_READWRITE)); + 0, G_MAXINT, DEFAULT_ABR, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_VAD, g_param_spec_boolean ("vad", "VAD", - "Enable voice activity detection", DEFAULT_VAD, G_PARAM_READWRITE)); + "Enable voice activity detection", DEFAULT_VAD, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DTX, g_param_spec_boolean ("dtx", "DTX", - "Enable discontinuous transmission", DEFAULT_DTX, G_PARAM_READWRITE)); + "Enable discontinuous transmission", DEFAULT_DTX, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_COMPLEXITY, g_param_spec_int ("complexity", "Complexity", "Set encoding complexity", - 0, G_MAXINT, DEFAULT_COMPLEXITY, G_PARAM_READWRITE)); + 0, G_MAXINT, DEFAULT_COMPLEXITY, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_NFRAMES, g_param_spec_int ("nframes", "NFrames", "Number of frames per buffer", - 0, G_MAXINT, DEFAULT_NFRAMES, G_PARAM_READWRITE)); + 0, G_MAXINT, DEFAULT_NFRAMES, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_LAST_MESSAGE, g_param_spec_string ("last-message", "last-message", - "The last status message", NULL, G_PARAM_READABLE)); + "The last status message", NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); gobject_class->finalize = gst_speex_enc_finalize; diff --git a/ext/wavpack/gstwavpackenc.c b/ext/wavpack/gstwavpackenc.c index 2cbe3aadf..aa085fc0b 100644 --- a/ext/wavpack/gstwavpackenc.c +++ b/ext/wavpack/gstwavpackenc.c @@ -254,34 +254,35 @@ gst_wavpack_enc_class_init (GstWavpackEncClass * klass) g_param_spec_enum ("mode", "Encoding mode", "Speed versus compression tradeoff.", GST_TYPE_WAVPACK_ENC_MODE, GST_WAVPACK_ENC_MODE_DEFAULT, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_BITRATE, g_param_spec_uint ("bitrate", "Bitrate", "Try to encode with this average bitrate (bits/sec). " "This enables lossy encoding, values smaller than 24000 disable it again.", - 0, 9600000, 0, G_PARAM_READWRITE)); + 0, 9600000, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_BITSPERSAMPLE, g_param_spec_double ("bits-per-sample", "Bits per sample", "Try to encode with this amount of bits per sample. " "This enables lossy encoding, values smaller than 2.0 disable it again.", - 0.0, 24.0, 0.0, G_PARAM_READWRITE)); + 0.0, 24.0, 0.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_CORRECTION_MODE, g_param_spec_enum ("correction-mode", "Correction stream mode", "Use this mode for the correction stream. Only works in lossy mode!", GST_TYPE_WAVPACK_ENC_CORRECTION_MODE, GST_WAVPACK_CORRECTION_MODE_OFF, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_MD5, g_param_spec_boolean ("md5", "MD5", "Store MD5 hash of raw samples within the file.", FALSE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_EXTRA_PROCESSING, g_param_spec_uint ("extra-processing", "Extra processing", "Use better but slower filters for better compression/quality.", - 0, 6, 0, G_PARAM_READWRITE)); + 0, 6, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_JOINT_STEREO_MODE, g_param_spec_enum ("joint-stereo-mode", "Joint-Stereo mode", "Use this joint-stereo mode.", GST_TYPE_WAVPACK_ENC_JOINT_STEREO_MODE, - GST_WAVPACK_JS_MODE_AUTO, G_PARAM_READWRITE)); + GST_WAVPACK_JS_MODE_AUTO, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } static void