various (sys): add a missing G_PARAM_STATIC_STRINGS flags

This commit is contained in:
Stefan Kost 2010-10-13 17:13:04 +03:00
parent 45f6707784
commit 77b656eec1
10 changed files with 21 additions and 19 deletions

View file

@ -99,12 +99,12 @@ gst_oss_mixer_element_class_init (GstOssMixerElementClass * klass)
g_object_class_install_property (gobject_class, PROP_DEVICE, g_object_class_install_property (gobject_class, PROP_DEVICE,
g_param_spec_string ("device", "Device", g_param_spec_string ("device", "Device",
"OSS mixer device (usually /dev/mixer)", DEFAULT_DEVICE, "OSS mixer device (usually /dev/mixer)", DEFAULT_DEVICE,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_object_class_install_property (gobject_class, PROP_DEVICE_NAME,
g_param_spec_string ("device-name", "Device name", g_param_spec_string ("device-name", "Device name",
"Human-readable name of the sound device", DEFAULT_DEVICE_NAME, "Human-readable name of the sound device", DEFAULT_DEVICE_NAME,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
element_class->change_state = element_class->change_state =
GST_DEBUG_FUNCPTR (gst_oss_mixer_element_change_state); GST_DEBUG_FUNCPTR (gst_oss_mixer_element_change_state);

View file

@ -205,7 +205,8 @@ gst_oss_sink_class_init (GstOssSinkClass * klass)
g_object_class_install_property (gobject_class, PROP_DEVICE, g_object_class_install_property (gobject_class, PROP_DEVICE,
g_param_spec_string ("device", "Device", g_param_spec_string ("device", "Device",
"OSS device (usually /dev/dspN)", DEFAULT_DEVICE, G_PARAM_READWRITE)); "OSS device (usually /dev/dspN)", DEFAULT_DEVICE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gstbasesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_oss_sink_getcaps); gstbasesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_oss_sink_getcaps);

View file

@ -168,12 +168,13 @@ gst_oss_src_class_init (GstOssSrcClass * klass)
g_object_class_install_property (gobject_class, PROP_DEVICE, g_object_class_install_property (gobject_class, PROP_DEVICE,
g_param_spec_string ("device", "Device", g_param_spec_string ("device", "Device",
"OSS device (usually /dev/dspN)", DEFAULT_DEVICE, G_PARAM_READWRITE)); "OSS device (usually /dev/dspN)", DEFAULT_DEVICE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_object_class_install_property (gobject_class, PROP_DEVICE_NAME,
g_param_spec_string ("device-name", "Device name", g_param_spec_string ("device-name", "Device name",
"Human-readable name of the sound device", DEFAULT_DEVICE_NAME, "Human-readable name of the sound device", DEFAULT_DEVICE_NAME,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
} }
static void static void

View file

@ -140,7 +140,7 @@ gst_oss4_mixer_class_init (GstOss4MixerClass * klass)
g_param_spec_string ("device", "Device", g_param_spec_string ("device", "Device",
"OSS mixer device (e.g. /dev/oss/hdaudio0/mix0 or /dev/mixerN) " "OSS mixer device (e.g. /dev/oss/hdaudio0/mix0 or /dev/mixerN) "
"(NULL = use first mixer device found)", DEFAULT_DEVICE, "(NULL = use first mixer device found)", DEFAULT_DEVICE,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/** /**
* GstOss4Mixer:device-name * GstOss4Mixer:device-name
@ -152,7 +152,7 @@ gst_oss4_mixer_class_init (GstOss4MixerClass * klass)
g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_object_class_install_property (gobject_class, PROP_DEVICE_NAME,
g_param_spec_string ("device-name", "Device name", g_param_spec_string ("device-name", "Device name",
"Human-readable name of the sound device", DEFAULT_DEVICE_NAME, "Human-readable name of the sound device", DEFAULT_DEVICE_NAME,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
element_class->change_state = GST_DEBUG_FUNCPTR (gst_oss4_mixer_change_state); element_class->change_state = GST_DEBUG_FUNCPTR (gst_oss4_mixer_change_state);
} }

View file

@ -152,12 +152,12 @@ gst_oss4_sink_class_init (GstOss4SinkClass * klass)
g_param_spec_string ("device", "Device", g_param_spec_string ("device", "Device",
"OSS4 device (e.g. /dev/oss/hdaudio0/pcm0 or /dev/dspN) " "OSS4 device (e.g. /dev/oss/hdaudio0/pcm0 or /dev/dspN) "
"(NULL = use first available playback device)", "(NULL = use first available playback device)",
DEFAULT_DEVICE, G_PARAM_READWRITE)); DEFAULT_DEVICE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_object_class_install_property (gobject_class, PROP_DEVICE_NAME,
g_param_spec_string ("device-name", "Device name", g_param_spec_string ("device-name", "Device name",
"Human-readable name of the sound device", DEFAULT_DEVICE_NAME, "Human-readable name of the sound device", DEFAULT_DEVICE_NAME,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_VOLUME, PROP_VOLUME,

View file

@ -151,12 +151,12 @@ gst_oss4_source_class_init (GstOss4SourceClass * klass)
g_param_spec_string ("device", "Device", g_param_spec_string ("device", "Device",
"OSS4 device (e.g. /dev/oss/hdaudio0/pcm0 or /dev/dspN) " "OSS4 device (e.g. /dev/oss/hdaudio0/pcm0 or /dev/dspN) "
"(NULL = use first available device)", "(NULL = use first available device)",
DEFAULT_DEVICE, G_PARAM_READWRITE)); DEFAULT_DEVICE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_object_class_install_property (gobject_class, PROP_DEVICE_NAME,
g_param_spec_string ("device-name", "Device name", g_param_spec_string ("device-name", "Device name",
"Human-readable name of the sound device", DEFAULT_DEVICE_NAME, "Human-readable name of the sound device", DEFAULT_DEVICE_NAME,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
} }
static void static void

View file

@ -401,7 +401,7 @@ gst_osx_video_sink_class_init (GstOSXVideoSinkClass * klass)
g_object_class_install_property (gobject_class, ARG_EMBED, g_object_class_install_property (gobject_class, ARG_EMBED,
g_param_spec_boolean ("embed", "embed", "For ABI compatiblity only, do not use", g_param_spec_boolean ("embed", "embed", "For ABI compatiblity only, do not use",
FALSE, G_PARAM_READWRITE)); FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
} }
static gboolean static gboolean

View file

@ -191,7 +191,7 @@ gst_sunaudiosink_class_init (GstSunAudioSinkClass * klass)
g_object_class_install_property (gobject_class, PROP_DEVICE, g_object_class_install_property (gobject_class, PROP_DEVICE,
g_param_spec_string ("device", "Device", "Audio Device (/dev/audio)", g_param_spec_string ("device", "Device", "Audio Device (/dev/audio)",
DEFAULT_DEVICE, G_PARAM_READWRITE)); DEFAULT_DEVICE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
} }
static void static void

View file

@ -148,7 +148,7 @@ gst_sunaudiosrc_class_init (GstSunAudioSrcClass * klass)
g_object_class_install_property (gobject_class, PROP_DEVICE, g_object_class_install_property (gobject_class, PROP_DEVICE,
g_param_spec_string ("device", "Device", g_param_spec_string ("device", "Device",
"SunAudio device (usually /dev/audio)", DEFAULT_DEVICE, "SunAudio device (usually /dev/audio)", DEFAULT_DEVICE,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
} }
static void static void

View file

@ -1033,14 +1033,14 @@ gst_ximage_src_class_init (GstXImageSrcClass * klass)
g_object_class_install_property (gc, PROP_DISPLAY_NAME, g_object_class_install_property (gc, PROP_DISPLAY_NAME,
g_param_spec_string ("display-name", "Display", "X Display Name", NULL, g_param_spec_string ("display-name", "Display", "X Display Name", NULL,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gc, PROP_SCREEN_NUM, g_object_class_install_property (gc, PROP_SCREEN_NUM,
g_param_spec_uint ("screen-num", "Screen number", "X Screen Number", g_param_spec_uint ("screen-num", "Screen number", "X Screen Number",
0, G_MAXINT, 0, G_PARAM_READWRITE)); 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gc, PROP_SHOW_POINTER, g_object_class_install_property (gc, PROP_SHOW_POINTER,
g_param_spec_boolean ("show-pointer", "Show Mouse Pointer", g_param_spec_boolean ("show-pointer", "Show Mouse Pointer",
"Show mouse pointer (if XFixes extension enabled)", TRUE, "Show mouse pointer (if XFixes extension enabled)", TRUE,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/** /**
* GstXImageSrc:use-damage * GstXImageSrc:use-damage
* *
@ -1051,7 +1051,7 @@ gst_ximage_src_class_init (GstXImageSrcClass * klass)
g_object_class_install_property (gc, PROP_USE_DAMAGE, g_object_class_install_property (gc, PROP_USE_DAMAGE,
g_param_spec_boolean ("use-damage", "Use XDamage", g_param_spec_boolean ("use-damage", "Use XDamage",
"Use XDamage (if XDamage extension enabled)", TRUE, "Use XDamage (if XDamage extension enabled)", TRUE,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/** /**
* GstXImageSrc:startx * GstXImageSrc:startx
* *
@ -1063,7 +1063,7 @@ gst_ximage_src_class_init (GstXImageSrcClass * klass)
g_object_class_install_property (gc, PROP_STARTX, g_object_class_install_property (gc, PROP_STARTX,
g_param_spec_uint ("startx", "Start X co-ordinate", g_param_spec_uint ("startx", "Start X co-ordinate",
"X coordinate of top left corner of area to be recorded (0 for top left of screen)", "X coordinate of top left corner of area to be recorded (0 for top left of screen)",
0, G_MAXINT, 0, G_PARAM_READWRITE)); 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/** /**
* GstXImageSrc:starty * GstXImageSrc:starty
* *