From d437e9204944b40e71ba9f72692e8205613d7df2 Mon Sep 17 00:00:00 2001 From: Alexander Slobodeniuk Date: Fri, 2 May 2025 08:56:19 +0200 Subject: [PATCH] properties: add G_PARAM_STATIC_STRINGS where missing "Hold on, I know you need to generate the registry, but let me just create copies of all those strings first", Framework whispered Part-of: --- .../gst-editing-services/ges/ges-asset.c | 11 +- .../ges/ges-audio-uri-source.c | 3 +- .../gst-editing-services/ges/ges-clip-asset.c | 2 +- .../gst-editing-services/ges/ges-clip.c | 8 +- .../gst-editing-services/ges/ges-container.c | 2 +- .../ges/ges-effect-clip.c | 6 +- .../gst-editing-services/ges/ges-group.c | 12 +- .../ges/ges-image-source.c | 3 +- .../gst-editing-services/ges/ges-layer.c | 6 +- .../ges/ges-marker-list.c | 4 +- .../ges/ges-multi-file-source.c | 3 +- .../gst-editing-services/ges/ges-project.c | 3 +- .../gst-editing-services/ges/ges-test-clip.c | 12 +- .../ges/ges-text-overlay-clip.c | 12 +- .../ges/ges-timeline-element.c | 19 ++- .../gst-editing-services/ges/ges-timeline.c | 7 +- .../gst-editing-services/ges/ges-title-clip.c | 11 +- .../ges/ges-track-element-asset.c | 2 +- .../ges/ges-track-element.c | 11 +- .../gst-editing-services/ges/ges-track.c | 13 +- .../ges/ges-transition-clip.c | 2 +- .../gst-editing-services/ges/ges-uri-asset.c | 6 +- .../gst-editing-services/ges/ges-uri-clip.c | 10 +- .../ges/ges-video-transition.c | 8 +- .../ges/ges-video-uri-source.c | 3 +- .../ges/gstframepositioner.c | 28 ++-- .../plugins/nle/nleobject.c | 19 +-- .../plugins/nle/nleoperation.c | 2 +- .../plugins/nle/nlesource.c | 2 +- .../plugins/nle/nleurisource.c | 3 +- .../gst-plugins-bad/ext/aes/gstaesdec.c | 12 +- .../ext/chromaprint/gstchromaprint.c | 5 +- subprojects/gst-plugins-bad/ext/iqa/iqa.c | 8 +- .../ext/openal/gstopenalsink.c | 7 +- .../gst-plugins-bad/ext/openal/gstopenalsrc.c | 4 +- .../ext/opencv/gstcvtracker.cpp | 2 +- .../ext/opencv/gsthanddetect.cpp | 2 +- .../ext/opencv/gstsegmentation.cpp | 2 +- .../ext/qroverlay/gstbaseqroverlay.c | 7 +- .../ext/qroverlay/gstdebugqroverlay.c | 12 +- .../gst-plugins-bad/ext/sndfile/gstsfsrc.c | 3 +- .../ext/spandsp/gsttonegeneratesrc.c | 12 +- .../gst-plugins-bad/ext/x265/gstx265enc.c | 3 +- .../gst-libs/gst/mse/gstsourcebuffer.c | 2 +- .../transcoder/gsttranscoder-signal-adapter.c | 2 +- .../gst-libs/gst/uridownloader/gstfragment.c | 10 +- .../gst-plugins-bad/gst/accurip/gstaccurip.c | 4 +- .../gst-plugins-bad/gst/proxy/gstproxysrc.c | 2 +- .../gst/removesilence/gstremovesilence.c | 15 +- .../gst-plugins-bad/sys/bluez/gsta2dpsink.c | 8 +- .../gst-plugins-bad/sys/bluez/gstavdtpsink.c | 9 +- .../gst-plugins-bad/sys/bluez/gstavdtpsrc.c | 5 +- .../sys/directshow/dshowvideosink.cpp | 6 +- .../sys/directshow/gstdshowvideosrc.cpp | 6 +- .../sys/directsound/gstdirectsoundsrc.c | 3 +- .../gst-plugins-bad/sys/dvb/gstdvbsrc.c | 141 ++++++++++++------ .../gst-plugins-bad/sys/fbdev/gstfbdevsink.c | 3 +- .../gst-plugins-bad/sys/kms/gstkmsallocator.c | 2 +- .../ext/pango/gstbasetextoverlay.c | 12 +- .../gst-libs/gst/allocators/gstdrmdumb.c | 2 +- .../gst-libs/gst/rtp/gstrtpbasedepayload.c | 5 +- .../gst/debugutils/gstnavigationtest.c | 6 +- .../gst/debugutils/gstpushfilesrc.c | 15 +- .../gst/multipart/multipartdemux.c | 2 +- .../gst-plugins-good/gst/rtp/gstrtpsbcpay.c | 3 +- .../gst-plugins-good/sys/v4l2/gstv4l2radio.c | 5 +- .../gst-plugins-good/sys/v4l2/gstv4l2sink.c | 10 +- .../sys/ximage/gstximagesrc.c | 6 +- .../gst/rtsp-server/rtsp-latency-bin.c | 3 +- .../gst/rtsp-server/rtsp-media.c | 2 +- 70 files changed, 371 insertions(+), 230 deletions(-) diff --git a/subprojects/gst-editing-services/ges/ges-asset.c b/subprojects/gst-editing-services/ges/ges-asset.c index 1f215e1e69..6b60afee1a 100644 --- a/subprojects/gst-editing-services/ges/ges-asset.c +++ b/subprojects/gst-editing-services/ges/ges-asset.c @@ -494,7 +494,8 @@ ges_asset_class_init (GESAssetClass * klass) _properties[PROP_TYPE] = g_param_spec_gtype ("extractable-type", "Extractable type", "The type of the Object that can be extracted out of the asset", - G_TYPE_OBJECT, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE); + G_TYPE_OBJECT, + G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); /** * GESAsset:id: @@ -512,7 +513,7 @@ ges_asset_class_init (GESAssetClass * klass) _properties[PROP_ID] = g_param_spec_string ("id", "Identifier", "The unique identifier of the asset", NULL, - G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE); + G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); /** * GESAsset:proxy: @@ -526,7 +527,8 @@ ges_asset_class_init (GESAssetClass * klass) */ _properties[PROP_PROXY] = g_param_spec_object ("proxy", "Proxy", - "The asset default proxy.", GES_TYPE_ASSET, G_PARAM_READWRITE); + "The asset default proxy.", GES_TYPE_ASSET, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); /** * GESAsset:proxy-target: @@ -546,7 +548,8 @@ ges_asset_class_init (GESAssetClass * klass) */ _properties[PROP_PROXY_TARGET] = g_param_spec_object ("proxy-target", "Proxy target", - "The target of a proxy asset.", GES_TYPE_ASSET, G_PARAM_READABLE); + "The target of a proxy asset.", GES_TYPE_ASSET, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, PROP_LAST, _properties); diff --git a/subprojects/gst-editing-services/ges/ges-audio-uri-source.c b/subprojects/gst-editing-services/ges/ges-audio-uri-source.c index 2d56160d83..7a32a9aeba 100644 --- a/subprojects/gst-editing-services/ges/ges-audio-uri-source.c +++ b/subprojects/gst-editing-services/ges/ges-audio-uri-source.c @@ -149,7 +149,8 @@ ges_audio_uri_source_class_init (GESAudioUriSourceClass * klass) */ g_object_class_install_property (object_class, PROP_URI, g_param_spec_string ("uri", "URI", "uri of the resource", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); element_class->get_natural_framerate = _get_natural_framerate; diff --git a/subprojects/gst-editing-services/ges/ges-clip-asset.c b/subprojects/gst-editing-services/ges/ges-clip-asset.c index fa075455f4..9bf2a29ec8 100644 --- a/subprojects/gst-editing-services/ges/ges-clip-asset.c +++ b/subprojects/gst-editing-services/ges/ges-clip-asset.c @@ -131,7 +131,7 @@ ges_clip_asset_class_init (GESClipAssetClass * self_class) properties[PROP_SUPPORTED_FORMATS] = g_param_spec_flags ("supported-formats", "Supported formats", "Formats supported by the file", GES_TYPE_TRACK_TYPE, GES_TRACK_TYPE_AUDIO | GES_TRACK_TYPE_VIDEO, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_SUPPORTED_FORMATS, properties[PROP_SUPPORTED_FORMATS]); diff --git a/subprojects/gst-editing-services/ges/ges-clip.c b/subprojects/gst-editing-services/ges/ges-clip.c index 07b2871bd8..4f8a1c45a1 100644 --- a/subprojects/gst-editing-services/ges/ges-clip.c +++ b/subprojects/gst-editing-services/ges/ges-clip.c @@ -2588,7 +2588,7 @@ ges_clip_class_init (GESClipClass * klass) properties[PROP_SUPPORTED_FORMATS] = g_param_spec_flags ("supported-formats", "Supported formats", "Formats supported by the clip", GES_TYPE_TRACK_TYPE, GES_TRACK_TYPE_AUDIO | GES_TRACK_TYPE_VIDEO, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_SUPPORTED_FORMATS, properties[PROP_SUPPORTED_FORMATS]); @@ -2604,7 +2604,8 @@ ges_clip_class_init (GESClipClass * klass) */ properties[PROP_LAYER] = g_param_spec_object ("layer", "Layer", "The GESLayer where this clip is being used.", - GES_TYPE_LAYER, G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); + GES_TYPE_LAYER, + G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_LAYER, properties[PROP_LAYER]); @@ -2631,7 +2632,8 @@ ges_clip_class_init (GESClipClass * klass) properties[PROP_DURATION_LIMIT] = g_param_spec_uint64 ("duration-limit", "Duration Limit", "A limit on the duration of the clip", 0, G_MAXUINT64, - GST_CLOCK_TIME_NONE, G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); + GST_CLOCK_TIME_NONE, + G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_DURATION_LIMIT, properties[PROP_DURATION_LIMIT]); diff --git a/subprojects/gst-editing-services/ges/ges-container.c b/subprojects/gst-editing-services/ges/ges-container.c index 2b7707436e..4a8cce5565 100644 --- a/subprojects/gst-editing-services/ges/ges-container.c +++ b/subprojects/gst-editing-services/ges/ges-container.c @@ -460,7 +460,7 @@ ges_container_class_init (GESContainerClass * klass) */ properties[PROP_HEIGHT] = g_param_spec_uint ("height", "Height", "The span of priorities this container occupies", 0, G_MAXUINT, 1, - G_PARAM_READABLE); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_HEIGHT, properties[PROP_HEIGHT]); diff --git a/subprojects/gst-editing-services/ges/ges-effect-clip.c b/subprojects/gst-editing-services/ges/ges-effect-clip.c index 408500cf7e..1000d01bcd 100644 --- a/subprojects/gst-editing-services/ges/ges-effect-clip.c +++ b/subprojects/gst-editing-services/ges/ges-effect-clip.c @@ -207,7 +207,8 @@ ges_effect_clip_class_init (GESEffectClipClass * klass) g_param_spec_string ("video-bin-description", "Video bin description", "Description of the video track of the effect", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); /** * GESEffectClip:audio-bin-description: @@ -221,7 +222,8 @@ ges_effect_clip_class_init (GESEffectClipClass * klass) g_param_spec_string ("audio-bin-description", "bin description", "Bin description of the audio track of the effect", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); timobj_class->create_track_element = _create_track_element; } diff --git a/subprojects/gst-editing-services/ges/ges-group.c b/subprojects/gst-editing-services/ges/ges-group.c index 0685170ecd..63d38bf763 100644 --- a/subprojects/gst-editing-services/ges/ges-group.c +++ b/subprojects/gst-editing-services/ges/ges-group.c @@ -583,7 +583,7 @@ ges_group_class_init (GESGroupClass * klass) */ properties[PROP_START] = g_param_spec_uint64 ("start", "Start", "The position in the container", 0, G_MAXUINT64, 0, - G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION); + G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION | G_PARAM_STATIC_STRINGS); /** * GESGroup:in-point: @@ -593,7 +593,8 @@ ges_group_class_init (GESGroupClass * klass) */ properties[PROP_INPOINT] = g_param_spec_uint64 ("in-point", "In-point", "The in-point", 0, - G_MAXUINT64, 0, G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION); + G_MAXUINT64, 0, + G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION | G_PARAM_STATIC_STRINGS); /** * GESGroup:duration: @@ -607,7 +608,7 @@ ges_group_class_init (GESGroupClass * klass) properties[PROP_DURATION] = g_param_spec_uint64 ("duration", "Duration", "The duration to use", 0, G_MAXUINT64, GST_CLOCK_TIME_NONE, - G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION); + G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION | G_PARAM_STATIC_STRINGS); /** * GESGroup:max-duration: @@ -618,7 +619,8 @@ ges_group_class_init (GESGroupClass * klass) properties[PROP_MAX_DURATION] = g_param_spec_uint64 ("max-duration", "Maximum duration", "The maximum duration of the object", 0, G_MAXUINT64, GST_CLOCK_TIME_NONE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT | GES_PARAM_NO_SERIALIZATION); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | GES_PARAM_NO_SERIALIZATION | + G_PARAM_STATIC_STRINGS); /** * GESGroup:priority: @@ -629,7 +631,7 @@ ges_group_class_init (GESGroupClass * klass) */ properties[PROP_PRIORITY] = g_param_spec_uint ("priority", "Priority", "The priority of the object", 0, G_MAXUINT, 0, - G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION); + G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, PROP_LAST, properties); diff --git a/subprojects/gst-editing-services/ges/ges-image-source.c b/subprojects/gst-editing-services/ges/ges-image-source.c index 327f784068..0580da51fb 100644 --- a/subprojects/gst-editing-services/ges/ges-image-source.c +++ b/subprojects/gst-editing-services/ges/ges-image-source.c @@ -173,7 +173,8 @@ ges_image_source_class_init (GESImageSourceClass * klass) */ g_object_class_install_property (object_class, PROP_URI, g_param_spec_string ("uri", "URI", "uri of the resource", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); source_class->create_source = ges_image_source_create_source; vsource_class->ABI.abi.get_natural_size = diff --git a/subprojects/gst-editing-services/ges/ges-layer.c b/subprojects/gst-editing-services/ges/ges-layer.c index bb09ad22b5..7fd8da2ba0 100644 --- a/subprojects/gst-editing-services/ges/ges-layer.c +++ b/subprojects/gst-editing-services/ges/ges-layer.c @@ -231,7 +231,8 @@ ges_layer_class_init (GESLayerClass * klass) */ g_object_class_install_property (object_class, PROP_PRIORITY, g_param_spec_uint ("priority", "Priority", - "The priority of the layer", 0, G_MAXUINT, 0, G_PARAM_READWRITE)); + "The priority of the layer", 0, G_MAXUINT, 0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GESLayer:auto-transition: @@ -246,7 +247,8 @@ ges_layer_class_init (GESLayerClass * klass) */ g_object_class_install_property (object_class, PROP_AUTO_TRANSITION, g_param_spec_boolean ("auto-transition", "Auto-Transition", - "whether the transitions are added", FALSE, G_PARAM_READWRITE)); + "whether the transitions are added", FALSE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GESLayer::clip-added: diff --git a/subprojects/gst-editing-services/ges/ges-marker-list.c b/subprojects/gst-editing-services/ges/ges-marker-list.c index 30ed78e6b1..9043d14e68 100644 --- a/subprojects/gst-editing-services/ges/ges-marker-list.c +++ b/subprojects/gst-editing-services/ges/ges-marker-list.c @@ -100,7 +100,7 @@ ges_marker_class_init (GESMarkerClass * klass) marker_properties[PROP_MARKER_POSITION] = g_param_spec_uint64 ("position", "Position", "The position of the marker", 0, G_MAXUINT64, - GST_CLOCK_TIME_NONE, G_PARAM_READABLE); + GST_CLOCK_TIME_NONE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_MARKER_POSITION, marker_properties[PROP_MARKER_POSITION]); @@ -220,7 +220,7 @@ ges_marker_list_class_init (GESMarkerListClass * klass) g_param_spec_flags ("flags", "Flags", "Functionalities the marker list should be used for", GES_TYPE_MARKER_FLAGS, GES_MARKER_FLAG_NONE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_MARKER_LIST_FLAGS, list_properties[PROP_MARKER_LIST_FLAGS]); diff --git a/subprojects/gst-editing-services/ges/ges-multi-file-source.c b/subprojects/gst-editing-services/ges/ges-multi-file-source.c index 7fc11eb05f..012b7f25a9 100644 --- a/subprojects/gst-editing-services/ges/ges-multi-file-source.c +++ b/subprojects/gst-editing-services/ges/ges-multi-file-source.c @@ -254,7 +254,8 @@ ges_multi_file_source_class_init (GESMultiFileSourceClass * klass) */ g_object_class_install_property (object_class, PROP_URI, g_param_spec_string ("uri", "URI", "multifile uri", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); source_class->create_source = ges_multi_file_source_create_source; } diff --git a/subprojects/gst-editing-services/ges/ges-project.c b/subprojects/gst-editing-services/ges/ges-project.c index f4fdc64dfd..3f2300b474 100644 --- a/subprojects/gst-editing-services/ges/ges-project.c +++ b/subprojects/gst-editing-services/ges/ges-project.c @@ -541,7 +541,8 @@ ges_project_class_init (GESProjectClass * klass) * The location of the project to use. */ _properties[PROP_URI] = g_param_spec_string ("uri", "URI", - "uri of the project", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); + "uri of the project", NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, PROP_LAST, _properties); diff --git a/subprojects/gst-editing-services/ges/ges-test-clip.c b/subprojects/gst-editing-services/ges/ges-test-clip.c index 20e9adb5f6..b56883332a 100644 --- a/subprojects/gst-editing-services/ges/ges-test-clip.c +++ b/subprojects/gst-editing-services/ges/ges-test-clip.c @@ -315,7 +315,8 @@ ges_test_clip_class_init (GESTestClipClass * klass) g_param_spec_enum ("vpattern", "VPattern", "Which video pattern to display. See videotestsrc element", GES_VIDEO_TEST_PATTERN_TYPE, - DEFAULT_VPATTERN, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + DEFAULT_VPATTERN, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESTestClip:freq: @@ -325,7 +326,8 @@ ges_test_clip_class_init (GESTestClipClass * klass) g_object_class_install_property (object_class, PROP_FREQ, g_param_spec_double ("freq", "Audio Frequency", "The frequency to generate. See audiotestsrc element", - 0, 20000, 440, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + 0, 20000, 440, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESTestClip:volume: @@ -335,7 +337,8 @@ ges_test_clip_class_init (GESTestClipClass * klass) g_object_class_install_property (object_class, PROP_VOLUME, g_param_spec_double ("volume", "Audio Volume", "The volume of the test audio signal.", - 0, 1, DEFAULT_VOLUME, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + 0, 1, DEFAULT_VOLUME, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** @@ -345,7 +348,8 @@ ges_test_clip_class_init (GESTestClipClass * klass) */ g_object_class_install_property (object_class, PROP_MUTE, g_param_spec_boolean ("mute", "Mute", "Mute audio track", - FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + FALSE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); clip_class->create_track_element = ges_test_clip_create_track_element; } diff --git a/subprojects/gst-editing-services/ges/ges-text-overlay-clip.c b/subprojects/gst-editing-services/ges/ges-text-overlay-clip.c index 5085502b42..751be95116 100644 --- a/subprojects/gst-editing-services/ges/ges-text-overlay-clip.c +++ b/subprojects/gst-editing-services/ges/ges-text-overlay-clip.c @@ -168,7 +168,8 @@ ges_text_overlay_clip_class_init (GESTextOverlayClipClass * klass) g_object_class_install_property (object_class, PROP_TEXT, g_param_spec_string ("text", "Text", "The text to display", - DEFAULT_PROP_TEXT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + DEFAULT_PROP_TEXT, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESTextOverlayClip:font-desc: @@ -215,7 +216,8 @@ ges_text_overlay_clip_class_init (GESTextOverlayClipClass * klass) g_object_class_install_property (object_class, PROP_COLOR, g_param_spec_uint ("color", "Color", "The color of the text", - 0, G_MAXUINT32, G_MAXUINT32, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + 0, G_MAXUINT32, G_MAXUINT32, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESTextOverlayClip:xpos: @@ -225,7 +227,8 @@ ges_text_overlay_clip_class_init (GESTextOverlayClipClass * klass) g_object_class_install_property (object_class, PROP_XPOS, g_param_spec_double ("xpos", "Xpos", "The horizontal position", - 0, 1, 0.5, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + 0, 1, 0.5, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESTextOverlayClip:ypos: @@ -235,7 +238,8 @@ ges_text_overlay_clip_class_init (GESTextOverlayClipClass * klass) g_object_class_install_property (object_class, PROP_YPOS, g_param_spec_double ("ypos", "Ypos", "The vertical position", - 0, 1, 0.5, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + 0, 1, 0.5, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); } static void diff --git a/subprojects/gst-editing-services/ges/ges-timeline-element.c b/subprojects/gst-editing-services/ges/ges-timeline-element.c index 2726f04b9d..781ed31aed 100644 --- a/subprojects/gst-editing-services/ges/ges-timeline-element.c +++ b/subprojects/gst-editing-services/ges/ges-timeline-element.c @@ -459,7 +459,7 @@ ges_timeline_element_class_init (GESTimelineElementClass * klass) properties[PROP_PARENT] = g_param_spec_object ("parent", "Parent", "The parent container of the object", GES_TYPE_TIMELINE_ELEMENT, - G_PARAM_READWRITE); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); /** * GESTimelineElement:timeline: @@ -469,7 +469,7 @@ ges_timeline_element_class_init (GESTimelineElementClass * klass) properties[PROP_TIMELINE] = g_param_spec_object ("timeline", "Timeline", "The timeline the object is in", GES_TYPE_TIMELINE, - G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); + G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); /** * GESTimelineElement:start: @@ -483,7 +483,7 @@ ges_timeline_element_class_init (GESTimelineElementClass * klass) */ properties[PROP_START] = g_param_spec_uint64 ("start", "Start", "The position in the timeline", 0, G_MAXUINT64, 0, - G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); + G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); /** * GESTimelineElement:in-point: (getter get_inpoint)(setter set_inpoint) @@ -504,7 +504,8 @@ ges_timeline_element_class_init (GESTimelineElementClass * klass) */ properties[PROP_INPOINT] = g_param_spec_uint64 ("in-point", "In-point", "The in-point", 0, - G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); + G_MAXUINT64, 0, + G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); /** * GESTimelineElement:duration: @@ -519,7 +520,7 @@ ges_timeline_element_class_init (GESTimelineElementClass * klass) properties[PROP_DURATION] = g_param_spec_uint64 ("duration", "Duration", "The play duration", 0, G_MAXUINT64, GST_CLOCK_TIME_NONE, - G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); + G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); /** * GESTimelineElement:max-duration: @@ -542,7 +543,8 @@ ges_timeline_element_class_init (GESTimelineElementClass * klass) properties[PROP_MAX_DURATION] = g_param_spec_uint64 ("max-duration", "Maximum duration", "The maximum duration of the object", 0, G_MAXUINT64, GST_CLOCK_TIME_NONE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY | + G_PARAM_STATIC_STRINGS); /** * GESTimelineElement:priority: @@ -552,7 +554,8 @@ ges_timeline_element_class_init (GESTimelineElementClass * klass) * Deprecated: 1.10: Priority management is now done by GES itself. */ properties[PROP_PRIORITY] = g_param_spec_uint ("priority", "Priority", - "The priority of the object", 0, G_MAXUINT, 0, G_PARAM_READWRITE); + "The priority of the object", 0, G_MAXUINT, 0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); /** * GESTimelineElement:name: @@ -570,7 +573,7 @@ ges_timeline_element_class_init (GESTimelineElementClass * klass) */ properties[PROP_SERIALIZE] = g_param_spec_boolean ("serialize", "Serialize", "Whether the element should be serialized", TRUE, - G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION); + G_PARAM_READWRITE | GES_PARAM_NO_SERIALIZATION | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, PROP_LAST, properties); diff --git a/subprojects/gst-editing-services/ges/ges-timeline.c b/subprojects/gst-editing-services/ges/ges-timeline.c index a480e53633..1075a64543 100644 --- a/subprojects/gst-editing-services/ges/ges-timeline.c +++ b/subprojects/gst-editing-services/ges/ges-timeline.c @@ -629,7 +629,7 @@ ges_timeline_class_init (GESTimelineClass * klass) properties[PROP_DURATION] = g_param_spec_uint64 ("duration", "Duration", "The duration of the timeline", 0, G_MAXUINT64, - GST_CLOCK_TIME_NONE, G_PARAM_READABLE); + GST_CLOCK_TIME_NONE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_DURATION, properties[PROP_DURATION]); @@ -643,7 +643,8 @@ ges_timeline_class_init (GESTimelineClass * klass) */ g_object_class_install_property (object_class, PROP_AUTO_TRANSITION, g_param_spec_boolean ("auto-transition", "Auto-Transition", - "whether the transitions are added", FALSE, G_PARAM_READWRITE)); + "whether the transitions are added", FALSE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GESTimeline:snapping-distance: @@ -656,7 +657,7 @@ ges_timeline_class_init (GESTimelineClass * klass) properties[PROP_SNAPPING_DISTANCE] = g_param_spec_uint64 ("snapping-distance", "Snapping distance", "Distance from which moving an object will snap with neighbours", 0, - G_MAXUINT64, 0, G_PARAM_READWRITE); + G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_SNAPPING_DISTANCE, properties[PROP_SNAPPING_DISTANCE]); diff --git a/subprojects/gst-editing-services/ges/ges-title-clip.c b/subprojects/gst-editing-services/ges/ges-title-clip.c index a99f70983f..c208fa3927 100644 --- a/subprojects/gst-editing-services/ges/ges-title-clip.c +++ b/subprojects/gst-editing-services/ges/ges-title-clip.c @@ -152,7 +152,7 @@ ges_title_clip_class_init (GESTitleClipClass * klass) g_object_class_install_property (object_class, PROP_TEXT, g_param_spec_string ("text", "Text", "The text to display", DEFAULT_TEXT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | - GES_PARAM_NO_SERIALIZATION)); + GES_PARAM_NO_SERIALIZATION | G_PARAM_STATIC_STRINGS)); /** * GESTitleClip:font-desc: @@ -220,7 +220,7 @@ ges_title_clip_class_init (GESTitleClipClass * klass) g_object_class_install_property (object_class, PROP_COLOR, g_param_spec_uint ("color", "Color", "The color of the text", 0, G_MAXUINT32, G_MAXUINT32, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | - GES_PARAM_NO_SERIALIZATION)); + GES_PARAM_NO_SERIALIZATION | G_PARAM_STATIC_STRINGS)); /** * GESTitleClip:background: @@ -235,7 +235,8 @@ ges_title_clip_class_init (GESTitleClipClass * klass) g_object_class_install_property (object_class, PROP_BACKGROUND, g_param_spec_uint ("background", "Background", "The background of the text", 0, G_MAXUINT32, G_MAXUINT32, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT | GES_PARAM_NO_SERIALIZATION)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | GES_PARAM_NO_SERIALIZATION | + G_PARAM_STATIC_STRINGS)); /** * GESTitleClip:xpos: @@ -250,7 +251,7 @@ ges_title_clip_class_init (GESTitleClipClass * klass) g_object_class_install_property (object_class, PROP_XPOS, g_param_spec_double ("xpos", "Xpos", "The horizontal position", 0, 1, 0.5, G_PARAM_READWRITE | G_PARAM_CONSTRUCT - | GES_PARAM_NO_SERIALIZATION)); + | GES_PARAM_NO_SERIALIZATION | G_PARAM_STATIC_STRINGS)); /** * GESTitleClip:ypos: @@ -265,7 +266,7 @@ ges_title_clip_class_init (GESTitleClipClass * klass) g_object_class_install_property (object_class, PROP_YPOS, g_param_spec_double ("ypos", "Ypos", "The vertical position", 0, 1, 0.5, G_PARAM_READWRITE | G_PARAM_CONSTRUCT - | GES_PARAM_NO_SERIALIZATION)); + | GES_PARAM_NO_SERIALIZATION | G_PARAM_STATIC_STRINGS)); } static void diff --git a/subprojects/gst-editing-services/ges/ges-track-element-asset.c b/subprojects/gst-editing-services/ges/ges-track-element-asset.c index f193500825..c69f7ddbfd 100644 --- a/subprojects/gst-editing-services/ges/ges-track-element-asset.c +++ b/subprojects/gst-editing-services/ges/ges-track-element-asset.c @@ -92,7 +92,7 @@ ges_track_element_asset_class_init (GESTrackElementAssetClass * klass) properties[PROP_TRACK_TYPE] = g_param_spec_flags ("track-type", "Track type", "The GESTrackType in which the object is", GES_TYPE_TRACK_TYPE, GES_TRACK_TYPE_UNKNOWN, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_TRACK_TYPE, properties[PROP_TRACK_TYPE]); diff --git a/subprojects/gst-editing-services/ges/ges-track-element.c b/subprojects/gst-editing-services/ges/ges-track-element.c index d80c1de0f2..4546e72e59 100644 --- a/subprojects/gst-editing-services/ges/ges-track-element.c +++ b/subprojects/gst-editing-services/ges/ges-track-element.c @@ -356,7 +356,7 @@ ges_track_element_class_init (GESTrackElementClass * klass) */ properties[PROP_ACTIVE] = g_param_spec_boolean ("active", "Active", "Use object in output", TRUE, - G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); + G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_ACTIVE, properties[PROP_ACTIVE]); @@ -371,7 +371,7 @@ ges_track_element_class_init (GESTrackElementClass * klass) properties[PROP_TRACK_TYPE] = g_param_spec_flags ("track-type", "Track Type", "The track type of the object", GES_TYPE_TRACK_TYPE, GES_TRACK_TYPE_UNKNOWN, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | - G_PARAM_EXPLICIT_NOTIFY); + G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_TRACK_TYPE, properties[PROP_TRACK_TYPE]); @@ -382,7 +382,8 @@ ges_track_element_class_init (GESTrackElementClass * klass) * belong to a track. */ properties[PROP_TRACK] = g_param_spec_object ("track", "Track", - "The track the object is in", GES_TYPE_TRACK, G_PARAM_READABLE); + "The track the object is in", GES_TYPE_TRACK, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_TRACK, properties[PROP_TRACK]); @@ -429,7 +430,7 @@ ges_track_element_class_init (GESTrackElementClass * klass) properties[PROP_HAS_INTERNAL_SOURCE] = g_param_spec_boolean ("has-internal-source", "Has Internal Source", "Whether the element has some internal source of stream data", FALSE, - G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); + G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_HAS_INTERNAL_SOURCE, properties[PROP_HAS_INTERNAL_SOURCE]); @@ -452,7 +453,7 @@ ges_track_element_class_init (GESTrackElementClass * klass) g_param_spec_boolean ("auto-clamp-control-sources", "Auto-Clamp Control Sources", "Whether to automatically update the " "control sources with a change in in-point or out-point", TRUE, - G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); + G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_AUTO_CLAMP_CONTROL_SOURCES, properties[PROP_AUTO_CLAMP_CONTROL_SOURCES]); diff --git a/subprojects/gst-editing-services/ges/ges-track.c b/subprojects/gst-editing-services/ges/ges-track.c index 6af50a99b2..8e9e21d860 100644 --- a/subprojects/gst-editing-services/ges/ges-track.c +++ b/subprojects/gst-editing-services/ges/ges-track.c @@ -734,7 +734,8 @@ ges_track_class_init (GESTrackClass * klass) */ properties[ARG_CAPS] = g_param_spec_boxed ("caps", "Caps", "Caps used to choose the output stream", - GST_TYPE_CAPS, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); + GST_TYPE_CAPS, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, ARG_CAPS, properties[ARG_CAPS]); @@ -754,7 +755,7 @@ ges_track_class_init (GESTrackClass * klass) properties[ARG_RESTRICTION_CAPS] = g_param_spec_boxed ("restriction-caps", "Restriction caps", "Caps used as a final filter on the output stream", GST_TYPE_CAPS, - G_PARAM_READWRITE); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, ARG_RESTRICTION_CAPS, properties[ARG_RESTRICTION_CAPS]); @@ -769,7 +770,7 @@ ges_track_class_init (GESTrackClass * klass) * the underlying composition? */ properties[ARG_DURATION] = g_param_spec_uint64 ("duration", "Duration", "The current duration of the track", 0, G_MAXUINT64, GST_SECOND, - G_PARAM_READABLE); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, ARG_DURATION, properties[ARG_DURATION]); @@ -786,7 +787,7 @@ ges_track_class_init (GESTrackClass * klass) properties[ARG_TYPE] = g_param_spec_flags ("track-type", "TrackType", "Type of stream the track outputs", GES_TYPE_TRACK_TYPE, GES_TRACK_TYPE_CUSTOM, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, ARG_TYPE, properties[ARG_TYPE]); @@ -801,7 +802,9 @@ ges_track_class_init (GESTrackClass * klass) */ properties[ARG_MIXING] = g_param_spec_boolean ("mixing", "Mixing", "Whether layer mixing is activated on the track or not", - TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY); + TRUE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY | + G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, ARG_MIXING, properties[ARG_MIXING]); diff --git a/subprojects/gst-editing-services/ges/ges-transition-clip.c b/subprojects/gst-editing-services/ges/ges-transition-clip.c index e3f5fff288..42a56c9d98 100644 --- a/subprojects/gst-editing-services/ges/ges-transition-clip.c +++ b/subprojects/gst-editing-services/ges/ges-transition-clip.c @@ -284,7 +284,7 @@ ges_transition_clip_class_init (GESTransitionClipClass * klass) "The SMPTE video wipe to use, or 0 for crossfade", GES_VIDEO_STANDARD_TRANSITION_TYPE_TYPE, GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); GES_TIMELINE_ELEMENT_CLASS (klass)->lookup_child = _lookup_child; container_class->child_added = _child_added; diff --git a/subprojects/gst-editing-services/ges/ges-uri-asset.c b/subprojects/gst-editing-services/ges/ges-uri-asset.c index 7ba08bca16..ab9785daf7 100644 --- a/subprojects/gst-editing-services/ges/ges-uri-asset.c +++ b/subprojects/gst-editing-services/ges/ges-uri-asset.c @@ -287,7 +287,8 @@ ges_uri_clip_asset_class_init (GESUriClipAssetClass * klass) */ properties[PROP_DURATION] = g_param_spec_uint64 ("duration", "Duration", "The duration to use", 0, - G_MAXUINT64, GST_CLOCK_TIME_NONE, G_PARAM_READWRITE); + G_MAXUINT64, GST_CLOCK_TIME_NONE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_DURATION, properties[PROP_DURATION]); @@ -300,7 +301,8 @@ ges_uri_clip_asset_class_init (GESUriClipAssetClass * klass) */ properties[PROP_IS_NESTED_TIMELINE] = g_param_spec_boolean ("is-nested-timeline", "Is nested timeline", - "Whether this is a nested timeline", FALSE, G_PARAM_READABLE); + "Whether this is a nested timeline", FALSE, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_IS_NESTED_TIMELINE, properties[PROP_IS_NESTED_TIMELINE]); diff --git a/subprojects/gst-editing-services/ges/ges-uri-clip.c b/subprojects/gst-editing-services/ges/ges-uri-clip.c index a003064a60..57af5192b5 100644 --- a/subprojects/gst-editing-services/ges/ges-uri-clip.c +++ b/subprojects/gst-editing-services/ges/ges-uri-clip.c @@ -157,7 +157,7 @@ ges_uri_clip_class_init (GESUriClipClass * klass) */ g_object_class_install_property (object_class, PROP_URI, g_param_spec_string ("uri", "URI", "uri of the resource", NULL, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); /** * GESUriClip:mute: @@ -166,7 +166,8 @@ ges_uri_clip_class_init (GESUriClipClass * klass) */ g_object_class_install_property (object_class, PROP_MUTE, g_param_spec_boolean ("mute", "Mute", "Mute audio track", - FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + FALSE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESUriClip:is-image: @@ -177,7 +178,8 @@ ges_uri_clip_class_init (GESUriClipClass * klass) g_object_class_install_property (object_class, PROP_IS_IMAGE, g_param_spec_boolean ("is-image", "Is still image", "Whether the clip represents a still image or not", - FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + FALSE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /* Redefine the supported formats property so the default value is UNKNOWN * and not AUDIO | VIDEO */ @@ -185,7 +187,7 @@ ges_uri_clip_class_init (GESUriClipClass * klass) g_param_spec_flags ("supported-formats", "Supported formats", "Formats supported by the file", GES_TYPE_TRACK_TYPE, GES_TRACK_TYPE_UNKNOWN, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); element_class->set_max_duration = uri_clip_set_max_duration; diff --git a/subprojects/gst-editing-services/ges/ges-video-transition.c b/subprojects/gst-editing-services/ges/ges-video-transition.c index a917a9a03a..ba06a0193f 100644 --- a/subprojects/gst-editing-services/ges/ges-video-transition.c +++ b/subprojects/gst-editing-services/ges/ges-video-transition.c @@ -158,7 +158,7 @@ ges_video_transition_class_init (GESVideoTransitionClass * klass) */ properties[PROP_BORDER] = g_param_spec_uint ("border", "Border", "The border width", 0, - G_MAXUINT, 0, G_PARAM_READWRITE); + G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_BORDER, properties[PROP_BORDER]); @@ -172,7 +172,8 @@ ges_video_transition_class_init (GESVideoTransitionClass * klass) properties[PROP_TRANSITION_TYPE] = g_param_spec_enum ("transition-type", "Transition type", "The type of the transition", GES_VIDEO_STANDARD_TRANSITION_TYPE_TYPE, - GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE, G_PARAM_READWRITE); + GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_TRANSITION_TYPE, properties[PROP_TRANSITION_TYPE]); @@ -185,7 +186,8 @@ ges_video_transition_class_init (GESVideoTransitionClass * klass) */ properties[PROP_INVERT] = g_param_spec_boolean ("invert", "Invert", - "Whether the transition is inverted", FALSE, G_PARAM_READWRITE); + "Whether the transition is inverted", FALSE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_INVERT, properties[PROP_INVERT]); diff --git a/subprojects/gst-editing-services/ges/ges-video-uri-source.c b/subprojects/gst-editing-services/ges/ges-video-uri-source.c index b3044f1a4d..e251f5febf 100644 --- a/subprojects/gst-editing-services/ges/ges-video-uri-source.c +++ b/subprojects/gst-editing-services/ges/ges-video-uri-source.c @@ -328,7 +328,8 @@ ges_video_uri_source_class_init (GESVideoUriSourceClass * klass) */ g_object_class_install_property (object_class, PROP_URI, g_param_spec_string ("uri", "URI", "uri of the resource", - NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + NULL, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); src_class->select_pad = ges_uri_source_select_pad; diff --git a/subprojects/gst-editing-services/ges/gstframepositioner.c b/subprojects/gst-editing-services/ges/gstframepositioner.c index e7d416922c..38b55520f5 100644 --- a/subprojects/gst-editing-services/ges/gstframepositioner.c +++ b/subprojects/gst-editing-services/ges/gstframepositioner.c @@ -542,7 +542,7 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) */ properties[PROP_ALPHA] = g_param_spec_double ("alpha", "alpha", "alpha of the stream", 0.0, 1.0, - 1.0, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE); + 1.0, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_STATIC_STRINGS); /** * gstframepositioner:posx: @@ -552,7 +552,8 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) properties[PROP_POSX] = g_param_spec_int ("posx", "posx", "x position of the stream", MIN_PIXELS, MAX_PIXELS, 0, - G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION); + G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION | + G_PARAM_STATIC_STRINGS); /** * gstframepositioner:fposx: @@ -562,7 +563,8 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) properties[PROP_FPOSX] = g_param_spec_float ("fposx", "fposx", "x position of the stream in float", MIN_PIXELS, MAX_PIXELS, 0, - G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION); + G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION | + G_PARAM_STATIC_STRINGS); /** * gstframepositioner:posy: @@ -572,7 +574,8 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) properties[PROP_POSY] = g_param_spec_int ("posy", "posy", "y position of the stream", MIN_PIXELS, MAX_PIXELS, 0, - G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION); + G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION | + G_PARAM_STATIC_STRINGS); /** @@ -583,7 +586,8 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) properties[PROP_FPOSY] = g_param_spec_float ("fposy", "fposy", "y position of the stream in float", MIN_PIXELS, MAX_PIXELS, 0, - G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION); + G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION | + G_PARAM_STATIC_STRINGS); /** * gstframepositioner:zorder: @@ -592,7 +596,7 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) */ properties[PROP_ZORDER] = g_param_spec_uint ("zorder", "zorder", "z order of the stream", 0, - G_MAXUINT, 0, G_PARAM_READWRITE); + G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); /** * gesframepositioner:width: @@ -603,7 +607,8 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) properties[PROP_WIDTH] = g_param_spec_int ("width", "width", "width of the source", 0, MAX_PIXELS, 0, - G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION); + G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION | + G_PARAM_STATIC_STRINGS); /** * gesframepositioner:fwidth: @@ -614,7 +619,8 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) properties[PROP_FWIDTH] = g_param_spec_float ("fwidth", "fwidth", "width of the source in float", 0, MAX_PIXELS, 0, - G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION); + G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION | + G_PARAM_STATIC_STRINGS); /** * gesframepositioner:height: @@ -625,7 +631,8 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) properties[PROP_HEIGHT] = g_param_spec_int ("height", "height", "height of the source", 0, MAX_PIXELS, 0, - G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION); + G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION | + G_PARAM_STATIC_STRINGS); /** * gesframepositioner:fheight: @@ -636,7 +643,8 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) properties[PROP_FHEIGHT] = g_param_spec_float ("fheight", "fheight", "height of the source in float", 0, MAX_PIXELS, 0, - G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION); + G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_LAX_VALIDATION | + G_PARAM_STATIC_STRINGS); /** * gesframepositioner:operator: diff --git a/subprojects/gst-editing-services/plugins/nle/nleobject.c b/subprojects/gst-editing-services/plugins/nle/nleobject.c index 7e3077a7a1..8a15d55e07 100644 --- a/subprojects/gst-editing-services/plugins/nle/nleobject.c +++ b/subprojects/gst-editing-services/plugins/nle/nleobject.c @@ -195,7 +195,7 @@ nle_object_class_init (NleObjectClass * klass) */ properties[PROP_START] = g_param_spec_uint64 ("start", "Start", "The start position relative to the parent (in nanoseconds)", - 0, G_MAXUINT64, 0, G_PARAM_READWRITE); + 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_START, properties[PROP_START]); @@ -206,7 +206,7 @@ nle_object_class_init (NleObjectClass * klass) */ properties[PROP_DURATION] = g_param_spec_int64 ("duration", "Duration", "Outgoing duration (in nanoseconds)", 0, G_MAXINT64, 0, - G_PARAM_READWRITE); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_DURATION, properties[PROP_DURATION]); @@ -219,7 +219,7 @@ nle_object_class_init (NleObjectClass * klass) */ properties[PROP_STOP] = g_param_spec_uint64 ("stop", "Stop", "The stop position relative to the parent (in nanoseconds)", - 0, G_MAXUINT64, 0, G_PARAM_READABLE); + 0, G_MAXUINT64, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_STOP, properties[PROP_STOP]); @@ -234,7 +234,7 @@ nle_object_class_init (NleObjectClass * klass) properties[PROP_INPOINT] = g_param_spec_uint64 ("inpoint", "Media start", "The media start position (in nanoseconds)", 0, G_MAXUINT64, - GST_CLOCK_TIME_NONE, G_PARAM_READWRITE); + GST_CLOCK_TIME_NONE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_INPOINT, properties[PROP_INPOINT]); @@ -254,7 +254,7 @@ nle_object_class_init (NleObjectClass * klass) */ properties[PROP_PRIORITY] = g_param_spec_uint ("priority", "Priority", "The priority of the object (0 = highest priority)", 0, G_MAXUINT, 0, - G_PARAM_READWRITE); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_PRIORITY, properties[PROP_PRIORITY]); @@ -266,7 +266,8 @@ nle_object_class_init (NleObjectClass * klass) * Set to #TRUE to temporarily disable this object in a #NleComposition. */ properties[PROP_ACTIVE] = g_param_spec_boolean ("active", "Active", - "Use this object in the NleComposition", TRUE, G_PARAM_READWRITE); + "Use this object in the NleComposition", TRUE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_ACTIVE, properties[PROP_ACTIVE]); @@ -282,7 +283,7 @@ nle_object_class_init (NleObjectClass * klass) */ properties[PROP_CAPS] = g_param_spec_boxed ("caps", "Caps", "Caps used to filter/choose the output stream", - GST_TYPE_CAPS, G_PARAM_READWRITE); + GST_TYPE_CAPS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_CAPS, properties[PROP_CAPS]); @@ -295,7 +296,7 @@ nle_object_class_init (NleObjectClass * klass) properties[PROP_EXPANDABLE] = g_param_spec_boolean ("expandable", "Expandable", "Expand to the full duration of the container composition", FALSE, - G_PARAM_READWRITE); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_EXPANDABLE, properties[PROP_EXPANDABLE]); @@ -314,7 +315,7 @@ nle_object_class_init (NleObjectClass * klass) properties[PROP_MEDIA_DURATION_FACTOR] = g_param_spec_double ("media-duration-factor", "Media duration factor", "The relative rate caused by this object", 0.01, G_MAXDOUBLE, - 1.0, G_PARAM_READWRITE | G_PARAM_DEPRECATED); + 1.0, G_PARAM_READWRITE | G_PARAM_DEPRECATED | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_MEDIA_DURATION_FACTOR, properties[PROP_MEDIA_DURATION_FACTOR]); diff --git a/subprojects/gst-editing-services/plugins/nle/nleoperation.c b/subprojects/gst-editing-services/plugins/nle/nleoperation.c index b39fdd7e17..349419964c 100644 --- a/subprojects/gst-editing-services/plugins/nle/nleoperation.c +++ b/subprojects/gst-editing-services/plugins/nle/nleoperation.c @@ -176,7 +176,7 @@ nle_operation_class_init (NleOperationClass * klass) g_object_class_install_property (gobject_class, ARG_SINKS, g_param_spec_int ("sinks", "Sinks", "Number of input sinks (-1 for automatic handling)", -1, G_MAXINT, -1, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * NleOperation:input-priority-changed: diff --git a/subprojects/gst-editing-services/plugins/nle/nlesource.c b/subprojects/gst-editing-services/plugins/nle/nlesource.c index 4c94885e6b..d361d31746 100644 --- a/subprojects/gst-editing-services/plugins/nle/nlesource.c +++ b/subprojects/gst-editing-services/plugins/nle/nlesource.c @@ -168,7 +168,7 @@ nle_source_class_init (NleSourceClass * klass) g_object_class_install_property (gobject_class, PROP_REVERSE, g_param_spec_boolean ("reverse", "Reverse", "Whether to playback the source reverse or not", FALSE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (gstelement_class, "GNonLin Source", "Filter/Editor", diff --git a/subprojects/gst-editing-services/plugins/nle/nleurisource.c b/subprojects/gst-editing-services/plugins/nle/nleurisource.c index eed90a5e61..7229da4319 100644 --- a/subprojects/gst-editing-services/plugins/nle/nleurisource.c +++ b/subprojects/gst-editing-services/plugins/nle/nleurisource.c @@ -85,7 +85,8 @@ nle_urisource_class_init (NleURISourceClass * klass) g_object_class_install_property (gobject_class, ARG_URI, g_param_spec_string ("uri", "Uri", - "Uri of the file to use", NULL, G_PARAM_READWRITE)); + "Uri of the file to use", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_add_static_pad_template (gstelement_class, &nle_urisource_src_template); diff --git a/subprojects/gst-plugins-bad/ext/aes/gstaesdec.c b/subprojects/gst-plugins-bad/ext/aes/gstaesdec.c index 66bd327c0b..02c6f8431a 100644 --- a/subprojects/gst-plugins-bad/ext/aes/gstaesdec.c +++ b/subprojects/gst-plugins-bad/ext/aes/gstaesdec.c @@ -161,7 +161,8 @@ gst_aes_dec_class_init (GstAesDecClass * klass) g_param_spec_boolean ("serialize-iv", "Serialize IV", "Read initialization vector from first 16 bytes of first buffer", GST_AES_DEFAULT_SERIALIZE_IV, - G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY)); + G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY | + G_PARAM_STATIC_STRINGS)); /** * GstAesDec:per-buffer-padding @@ -177,7 +178,8 @@ gst_aes_dec_class_init (GstAesDecClass * klass) "If true, pad each buffer using PKCS7 padding scheme. Otherwise, only" "pad final buffer", GST_AES_PER_BUFFER_PADDING_DEFAULT, - G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY)); + G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY | + G_PARAM_STATIC_STRINGS)); /** * GstAesDec:key @@ -192,7 +194,8 @@ gst_aes_dec_class_init (GstAesDecClass * klass) "the number of bits in the key length : " "16 bytes for AES 128 and 32 bytes for AES 256", (gchar *) GST_AES_DEFAULT_KEY, - G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY)); + G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY | + G_PARAM_STATIC_STRINGS)); /** * GstAesDec:iv * @@ -205,7 +208,8 @@ gst_aes_dec_class_init (GstAesDecClass * klass) "AES encryption initialization vector (in hexadecimal). " "Length must equal AES block length (16 bytes)", (gchar *) GST_AES_DEFAULT_IV, - G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY)); + G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY | + G_PARAM_STATIC_STRINGS)); gst_element_class_set_details_simple (gstelement_class, "aesdec", diff --git a/subprojects/gst-plugins-bad/ext/chromaprint/gstchromaprint.c b/subprojects/gst-plugins-bad/ext/chromaprint/gstchromaprint.c index e79efc6991..092971c8b0 100644 --- a/subprojects/gst-plugins-bad/ext/chromaprint/gstchromaprint.c +++ b/subprojects/gst-plugins-bad/ext/chromaprint/gstchromaprint.c @@ -92,13 +92,14 @@ gst_chromaprint_class_init (GstChromaprintClass * klass) g_object_class_install_property (gobject_class, PROP_FINGERPRINT, g_param_spec_string ("fingerprint", "Resulting fingerprint", - "Resulting fingerprint", NULL, G_PARAM_READABLE)); + "Resulting fingerprint", NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_MAX_DURATION, g_param_spec_uint ("duration", "Duration limit", "Number of seconds of audio to use for fingerprinting", 0, G_MAXUINT, DEFAULT_MAX_DURATION, - G_PARAM_READABLE | G_PARAM_WRITABLE)); + G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_chromaprint_finalize); diff --git a/subprojects/gst-plugins-bad/ext/iqa/iqa.c b/subprojects/gst-plugins-bad/ext/iqa/iqa.c index 9362fd8459..8ca8373146 100644 --- a/subprojects/gst-plugins-bad/ext/iqa/iqa.c +++ b/subprojects/gst-plugins-bad/ext/iqa/iqa.c @@ -476,13 +476,15 @@ gst_iqa_class_init (GstIqaClass * klass) #ifdef HAVE_DSSIM g_object_class_install_property (gobject_class, PROP_DO_SSIM, g_param_spec_boolean ("do-dssim", "do-dssim", - "Run structural similarity checks", FALSE, G_PARAM_READWRITE)); + "Run structural similarity checks", FALSE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SSIM_ERROR_THRESHOLD, g_param_spec_double ("dssim-error-threshold", "dssim error threshold", "dssim value over which the element will post an error message on the bus." " A value < 0.0 means 'disabled'.", - -1.0, G_MAXDOUBLE, DEFAULT_DSSIM_ERROR_THRESHOLD, G_PARAM_READWRITE)); + -1.0, G_MAXDOUBLE, DEFAULT_DSSIM_ERROR_THRESHOLD, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); #endif /** @@ -495,7 +497,7 @@ gst_iqa_class_init (GstIqaClass * klass) g_object_class_install_property (gobject_class, PROP_MODE, g_param_spec_flags ("mode", "IQA mode", "Controls the frame comparison mode.", GST_TYPE_IQA_MODE, - 0, G_PARAM_READWRITE)); + 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_type_mark_as_plugin_api (GST_TYPE_IQA_MODE, 0); diff --git a/subprojects/gst-plugins-bad/ext/openal/gstopenalsink.c b/subprojects/gst-plugins-bad/ext/openal/gstopenalsink.c index 265cb873ba..a0e2ec5c3a 100644 --- a/subprojects/gst-plugins-bad/ext/openal/gstopenalsink.c +++ b/subprojects/gst-plugins-bad/ext/openal/gstopenalsink.c @@ -209,12 +209,13 @@ gst_openal_sink_class_init (GstOpenALSinkClass * klass) g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_param_spec_string ("device-name", "Device name", - "Human-readable name of the opened device", "", G_PARAM_READABLE)); + "Human-readable name of the opened device", "", + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DEVICE, g_param_spec_string ("device", "Device", "Human-readable name of the device", OPENAL_DEFAULT_DEVICE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_USER_DEVICE, g_param_spec_pointer ("user-device", "ALCdevice", "User device", @@ -226,7 +227,7 @@ gst_openal_sink_class_init (GstOpenALSinkClass * klass) g_object_class_install_property (gobject_class, PROP_USER_SOURCE, g_param_spec_uint ("user-source", "ALsource", "User source", 0, UINT_MAX, - 0, G_PARAM_READWRITE)); + 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (gstelement_class, "OpenAL Audio Sink", "Sink/Audio", "Output audio through OpenAL", diff --git a/subprojects/gst-plugins-bad/ext/openal/gstopenalsrc.c b/subprojects/gst-plugins-bad/ext/openal/gstopenalsrc.c index 285b363b32..3803af25cc 100644 --- a/subprojects/gst-plugins-bad/ext/openal/gstopenalsrc.c +++ b/subprojects/gst-plugins-bad/ext/openal/gstopenalsrc.c @@ -184,12 +184,12 @@ gst_openal_src_class_init (GstOpenalSrcClass * klass) g_object_class_install_property (gobject_class, PROP_DEVICE, g_param_spec_string ("device", "ALCdevice", "User device, default device if NULL", OPENAL_DEFAULT_DEVICE, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_param_spec_string ("device-name", "Device name", "Human-readable name of the device", OPENAL_DEFAULT_DEVICE_NAME, - G_PARAM_READABLE)); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (gstelement_class, "OpenAL Audio Source", "Source/Audio", "Input audio through OpenAL", diff --git a/subprojects/gst-plugins-bad/ext/opencv/gstcvtracker.cpp b/subprojects/gst-plugins-bad/ext/opencv/gstcvtracker.cpp index 0c5dfda35f..bede56e14e 100644 --- a/subprojects/gst-plugins-bad/ext/opencv/gstcvtracker.cpp +++ b/subprojects/gst-plugins-bad/ext/opencv/gstcvtracker.cpp @@ -211,7 +211,7 @@ gst_cvtracker_class_init (GstCVTrackerClass * klass) g_object_class_install_property (gobject_class, PROP_DRAW, g_param_spec_boolean ("draw-rect", "Display", "Draw rectangle around tracked object", - TRUE, (GParamFlags) G_PARAM_READWRITE)); + TRUE, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); gst_element_class_set_static_metadata (element_class, "cvtracker", diff --git a/subprojects/gst-plugins-bad/ext/opencv/gsthanddetect.cpp b/subprojects/gst-plugins-bad/ext/opencv/gsthanddetect.cpp index 9a5f4e820e..9a618e7360 100644 --- a/subprojects/gst-plugins-bad/ext/opencv/gsthanddetect.cpp +++ b/subprojects/gst-plugins-bad/ext/opencv/gsthanddetect.cpp @@ -201,7 +201,7 @@ gst_handdetect_class_init (GstHanddetectClass * klass) g_param_spec_boolean ("display", "Display", "Whether the detected hands are highlighted in output frame", - TRUE, (GParamFlags) G_PARAM_READWRITE) + TRUE, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)) ); g_object_class_install_property (gobject_class, PROP_PROFILE_FIST, diff --git a/subprojects/gst-plugins-bad/ext/opencv/gstsegmentation.cpp b/subprojects/gst-plugins-bad/ext/opencv/gstsegmentation.cpp index cf25a6dd50..439d14da4e 100644 --- a/subprojects/gst-plugins-bad/ext/opencv/gstsegmentation.cpp +++ b/subprojects/gst-plugins-bad/ext/opencv/gstsegmentation.cpp @@ -221,7 +221,7 @@ gst_segmentation_class_init (GstSegmentationClass * klass) g_object_class_install_property (gobject_class, PROP_LEARNING_RATE, g_param_spec_float ("learning-rate", "learning-rate", "Speed with which a motionless foreground pixel would become background (inverse of number of frames)", - 0, 1, DEFAULT_LEARNING_RATE, (GParamFlags) (G_PARAM_READWRITE))); + 0, 1, DEFAULT_LEARNING_RATE, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); gst_element_class_set_static_metadata (element_class, "Foreground/background video sequence segmentation", diff --git a/subprojects/gst-plugins-bad/ext/qroverlay/gstbaseqroverlay.c b/subprojects/gst-plugins-bad/ext/qroverlay/gstbaseqroverlay.c index 8408e5bd6a..fc41a07736 100644 --- a/subprojects/gst-plugins-bad/ext/qroverlay/gstbaseqroverlay.c +++ b/subprojects/gst-plugins-bad/ext/qroverlay/gstbaseqroverlay.c @@ -329,12 +329,12 @@ gst_base_qr_overlay_class_init (GstBaseQROverlayClass * klass) g_object_class_install_property (gobject_class, PROP_X_AXIS, g_param_spec_float ("x", "X position (in percent of the width)", "X position (in percent of the width)", 0.0, 100.0, DEFAULT_PROP_X, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_Y_AXIS, g_param_spec_float ("y", "Y position (in percent of the height)", "Y position (in percent of the height)", 0.0, 100.0, DEFAULT_PROP_Y, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstBaseQROverlay:size: @@ -347,7 +347,8 @@ gst_base_qr_overlay_class_init (GstBaseQROverlayClass * klass) g_param_spec_float ("size", "Size of the square (in percent of the smallest of width and height)", "Size of the square (in percent of the smallest of width and height)", - 0.0, 100.0, DEFAULT_PROP_SIZE, G_PARAM_READWRITE)); + 0.0, 100.0, DEFAULT_PROP_SIZE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_QRCODE_ERROR_CORRECTION, g_param_spec_enum ("qrcode-error-correction", "qrcode-error-correction", diff --git a/subprojects/gst-plugins-bad/ext/qroverlay/gstdebugqroverlay.c b/subprojects/gst-plugins-bad/ext/qroverlay/gstdebugqroverlay.c index 2907ba72cf..cabc48e096 100644 --- a/subprojects/gst-plugins-bad/ext/qroverlay/gstdebugqroverlay.c +++ b/subprojects/gst-plugins-bad/ext/qroverlay/gstdebugqroverlay.c @@ -130,25 +130,29 @@ gst_debug_qr_overlay_class_init (GstDebugQROverlayClass * klass) g_param_spec_int64 ("extra-data-interval-buffers", "extra-data-interval-buffers", "Extra data append into the Qrcode at the first buffer of each " - " interval", 0, G_MAXINT64, 60, G_PARAM_READWRITE)); + " interval", 0, G_MAXINT64, 60, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DATA_SPAN_BUFFERS, g_param_spec_int64 ("extra-data-span-buffers", "extra-data-span-buffers", "Numbers of consecutive buffers that the extra data will be inserted " - " (counting the first buffer)", 0, G_MAXINT64, 1, G_PARAM_READWRITE)); + " (counting the first buffer)", 0, G_MAXINT64, 1, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_EXTRA_DATA_NAME, g_param_spec_string ("extra-data-name", "Extra data name", - "Json key name for extra append data", NULL, G_PARAM_READWRITE)); + "Json key name for extra append data", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_EXTRA_DATA_ARRAY, g_param_spec_string ("extra-data-array", "Extra data array", "List of comma separated values that the extra data value will be " " cycled from at each interval, example array structure :" - " \"240,480,720,960,1200,1440,1680,1920\"", NULL, G_PARAM_READWRITE)); + " \"240,480,720,960,1200,1440,1680,1920\"", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_details_simple (gstelement_class, diff --git a/subprojects/gst-plugins-bad/ext/sndfile/gstsfsrc.c b/subprojects/gst-plugins-bad/ext/sndfile/gstsfsrc.c index eda3140a4d..dafdcd9942 100644 --- a/subprojects/gst-plugins-bad/ext/sndfile/gstsfsrc.c +++ b/subprojects/gst-plugins-bad/ext/sndfile/gstsfsrc.c @@ -106,7 +106,8 @@ gst_sf_src_class_init (GstSFSrcClass * klass) g_object_class_install_property (gobject_class, PROP_LOCATION, g_param_spec_string ("location", "File Location", - "Location of the file to read", NULL, G_PARAM_READWRITE)); + "Location of the file to read", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_sf_src_finalize); diff --git a/subprojects/gst-plugins-bad/ext/spandsp/gsttonegeneratesrc.c b/subprojects/gst-plugins-bad/ext/spandsp/gsttonegeneratesrc.c index 71d5cf2c08..50dc584ff7 100644 --- a/subprojects/gst-plugins-bad/ext/spandsp/gsttonegeneratesrc.c +++ b/subprojects/gst-plugins-bad/ext/spandsp/gsttonegeneratesrc.c @@ -125,27 +125,29 @@ gst_tone_generate_src_class_init (GstToneGenerateSrcClass * klass) g_object_class_install_property (gobject_class, PROP_ON_TIME, g_param_spec_int ("on-time", "Signal ON time first period", "Time of the first period when the tone signal is present", 1, - G_MAXINT, DEFAULT_ON_TIME, G_PARAM_READWRITE)); + G_MAXINT, DEFAULT_ON_TIME, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_OFF_TIME, g_param_spec_int ("off-time", "Signal OFF time first period ", "Time of the first period when the tone signal is off", 0, G_MAXINT, - DEFAULT_OFF_TIME, G_PARAM_READWRITE)); + DEFAULT_OFF_TIME, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_ON_TIME2, g_param_spec_int ("on-time2", "Signal ON time second period", "Time of the second period when the tone signal is present", 1, - G_MAXINT, DEFAULT_ON_TIME, G_PARAM_READWRITE)); + G_MAXINT, DEFAULT_ON_TIME, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_OFF_TIME2, g_param_spec_int ("off-time2", "Signal OFF time first period ", "Time of the second period when the tone signal is off", 0, G_MAXINT, - DEFAULT_ON_TIME, G_PARAM_READWRITE)); + DEFAULT_ON_TIME, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_REPEAT, g_param_spec_boolean ("repeat", "Repeat the specified tone period ", "Whether to repeat specified tone indefinitely", DEFAULT_REPEAT, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_add_static_pad_template (gstelement_class, &gst_tone_generate_src_src_template); diff --git a/subprojects/gst-plugins-bad/ext/x265/gstx265enc.c b/subprojects/gst-plugins-bad/ext/x265/gstx265enc.c index faecfeec2a..a0edf11cba 100644 --- a/subprojects/gst-plugins-bad/ext/x265/gstx265enc.c +++ b/subprojects/gst-plugins-bad/ext/x265/gstx265enc.c @@ -522,7 +522,8 @@ gst_x265_enc_class_init (GstX265EncClass * klass) g_object_class_install_property (gobject_class, PROP_KEY_INT_MAX, g_param_spec_int ("key-int-max", "Max key frame", "Maximal distance between two key-frames (0 = x265 default / 250)", - 0, G_MAXINT32, PROP_KEY_INT_MAX_DEFAULT, G_PARAM_READWRITE)); + 0, G_MAXINT32, PROP_KEY_INT_MAX_DEFAULT, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (element_class, "x265enc", "Codec/Encoder/Video", "H265 Encoder", diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/mse/gstsourcebuffer.c b/subprojects/gst-plugins-bad/gst-libs/gst/mse/gstsourcebuffer.c index ad1a47937d..ad34cd0591 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/mse/gstsourcebuffer.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/mse/gstsourcebuffer.c @@ -585,7 +585,7 @@ gst_source_buffer_class_init (GstSourceBufferClass * klass) "Updating", "Whether the current Source Buffer is still" " asynchronously processing previously issued commands", - FALSE, G_PARAM_READABLE); + FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (oclass, N_PROPS, properties); diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/transcoder/gsttranscoder-signal-adapter.c b/subprojects/gst-plugins-bad/gst-libs/gst/transcoder/gsttranscoder-signal-adapter.c index cbbec126ee..c40b4f54cc 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/transcoder/gsttranscoder-signal-adapter.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/transcoder/gsttranscoder-signal-adapter.c @@ -321,7 +321,7 @@ gst_transcoder_signal_adapter_class_init (GstTranscoderSignalAdapterClass * param_specs[PROP_TRANSCODER] = g_param_spec_object ("transcoder", "Transcoder", "The GstTranscoder @self is tracking", GST_TYPE_TRANSCODER, - G_PARAM_READABLE); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (gobject_class, PROP_LAST, param_specs); } diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/uridownloader/gstfragment.c b/subprojects/gst-plugins-bad/gst-libs/gst/uridownloader/gstfragment.c index e7a783957c..83f843db69 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/uridownloader/gstfragment.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/uridownloader/gstfragment.c @@ -124,20 +124,22 @@ gst_fragment_class_init (GstFragmentClass * klass) g_object_class_install_property (gobject_class, PROP_INDEX, g_param_spec_uint ("index", "Index", "Index of the fragment", 0, - G_MAXUINT, 0, G_PARAM_READABLE)); + G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_NAME, g_param_spec_string ("name", "Name", - "Name of the fragment (eg:fragment-12.ts)", NULL, G_PARAM_READABLE)); + "Name of the fragment (eg:fragment-12.ts)", NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DISCONTINOUS, g_param_spec_boolean ("discontinuous", "Discontinuous", "Whether this fragment has a discontinuity or not", - FALSE, G_PARAM_READABLE)); + FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DURATION, g_param_spec_uint64 ("duration", "Fragment duration", - "Duration of the fragment", 0, G_MAXUINT64, 0, G_PARAM_READABLE)); + "Duration of the fragment", 0, G_MAXUINT64, 0, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_BUFFER, g_param_spec_boxed ("buffer", "Buffer", diff --git a/subprojects/gst-plugins-bad/gst/accurip/gstaccurip.c b/subprojects/gst-plugins-bad/gst/accurip/gstaccurip.c index 088cf8d8e7..f444da864e 100644 --- a/subprojects/gst-plugins-bad/gst/accurip/gstaccurip.c +++ b/subprojects/gst-plugins-bad/gst/accurip/gstaccurip.c @@ -106,12 +106,12 @@ gst_accurip_class_init (GstAccuripClass * klass) g_object_class_install_property (gobject_class, PROP_FIRST_TRACK, g_param_spec_boolean ("first-track", "First track", "Indicate to the CRC calculation algorithm that this is the first track of a set", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_LAST_TRACK, g_param_spec_boolean ("last-track", "Last track", "Indicate to the CRC calculation algorithm that this is the last track of a set", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_accurip_finalize); diff --git a/subprojects/gst-plugins-bad/gst/proxy/gstproxysrc.c b/subprojects/gst-plugins-bad/gst/proxy/gstproxysrc.c index 97fbc121f9..5d05437315 100644 --- a/subprojects/gst-plugins-bad/gst/proxy/gstproxysrc.c +++ b/subprojects/gst-plugins-bad/gst/proxy/gstproxysrc.c @@ -177,7 +177,7 @@ gst_proxy_src_class_init (GstProxySrcClass * klass) g_object_class_install_property (gobject_class, PROP_PROXYSINK, g_param_spec_object ("proxysink", "Proxysink", "Matching proxysink", - GST_TYPE_PROXY_SINK, G_PARAM_READWRITE)); + GST_TYPE_PROXY_SINK, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = gst_proxy_src_change_state; gstelement_class->send_event = gst_proxy_src_send_event; diff --git a/subprojects/gst-plugins-bad/gst/removesilence/gstremovesilence.c b/subprojects/gst-plugins-bad/gst/removesilence/gstremovesilence.c index 91406dba39..c5b848974f 100644 --- a/subprojects/gst-plugins-bad/gst/removesilence/gstremovesilence.c +++ b/subprojects/gst-plugins-bad/gst/removesilence/gstremovesilence.c @@ -140,36 +140,39 @@ gst_remove_silence_class_init (GstRemoveSilenceClass * klass) g_object_class_install_property (gobject_class, PROP_REMOVE, g_param_spec_boolean ("remove", "Remove", "Set to true to remove silence from the stream, false otherwise", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_HYSTERESIS, g_param_spec_uint64 ("hysteresis", "Hysteresis", "Set the hysteresis (on samples) used on the internal VAD", - 1, G_MAXUINT64, DEFAULT_VAD_HYSTERESIS, G_PARAM_READWRITE)); + 1, G_MAXUINT64, DEFAULT_VAD_HYSTERESIS, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_THRESHOLD, g_param_spec_int ("threshold", "Threshold", "Set the silence threshold used on the internal VAD in dB", - -70, 70, DEFAULT_VAD_THRESHOLD, G_PARAM_READWRITE)); + -70, 70, DEFAULT_VAD_THRESHOLD, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SQUASH, g_param_spec_boolean ("squash", "Squash", "Set to true to retimestamp buffers when silence is removed and so avoid timestamp gap", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SILENT, g_param_spec_boolean ("silent", "Silent", "Disable/enable bus message notifications for silence detected/finished", - TRUE, G_PARAM_READWRITE)); + TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_MINIMUM_SILENCE_BUFFERS, g_param_spec_uint ("minimum-silence-buffers", "Minimum silence buffers", "Define the minimum number of consecutive silence buffers before " "removing silence, 0 means disabled. This will not introduce latency", MINIMUM_SILENCE_BUFFERS_MIN, MINIMUM_SILENCE_BUFFERS_MAX, - MINIMUM_SILENCE_BUFFERS_DEF, G_PARAM_READWRITE)); + MINIMUM_SILENCE_BUFFERS_DEF, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_MINIMUM_SILENCE_TIME, g_param_spec_uint64 ("minimum_silence_time", diff --git a/subprojects/gst-plugins-bad/sys/bluez/gsta2dpsink.c b/subprojects/gst-plugins-bad/sys/bluez/gsta2dpsink.c index e0bddd0b22..7f9ac57180 100644 --- a/subprojects/gst-plugins-bad/sys/bluez/gsta2dpsink.c +++ b/subprojects/gst-plugins-bad/sys/bluez/gsta2dpsink.c @@ -300,16 +300,18 @@ gst_a2dp_sink_class_init (GstA2dpSinkClass * klass) g_object_class_install_property (object_class, PROP_DEVICE, g_param_spec_string ("device", "Device", - "Bluetooth remote device address", NULL, G_PARAM_READWRITE)); + "Bluetooth remote device address", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_AUTOCONNECT, g_param_spec_boolean ("auto-connect", "Auto-connect", "Automatically attempt to connect to device", - DEFAULT_AUTOCONNECT, G_PARAM_READWRITE)); + DEFAULT_AUTOCONNECT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_TRANSPORT, g_param_spec_string ("transport", "Transport", - "Use configured transport", NULL, G_PARAM_READWRITE)); + "Use configured transport", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (element_class, "Bluetooth A2DP sink", "Sink/Audio", "Plays audio to an A2DP device", diff --git a/subprojects/gst-plugins-bad/sys/bluez/gstavdtpsink.c b/subprojects/gst-plugins-bad/sys/bluez/gstavdtpsink.c index 72d4b3c51c..8d36401f51 100644 --- a/subprojects/gst-plugins-bad/sys/bluez/gstavdtpsink.c +++ b/subprojects/gst-plugins-bad/sys/bluez/gstavdtpsink.c @@ -380,17 +380,20 @@ gst_avdtp_sink_class_init (GstAvdtpSinkClass * klass) g_object_class_install_property (object_class, PROP_DEVICE, g_param_spec_string ("device", "Device", - "Bluetooth remote device address", NULL, G_PARAM_READWRITE)); + "Bluetooth remote device address", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_AUTOCONNECT, g_param_spec_boolean ("auto-connect", "Auto-connect", "Automatically attempt to connect " - "to device", DEFAULT_AUTOCONNECT, G_PARAM_READWRITE)); + "to device", DEFAULT_AUTOCONNECT, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_TRANSPORT, g_param_spec_string ("transport", - "Transport", "Use configured transport", NULL, G_PARAM_READWRITE)); + "Transport", "Use configured transport", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); GST_DEBUG_CATEGORY_INIT (avdtp_sink_debug, "avdtpsink", 0, "A2DP headset sink element"); diff --git a/subprojects/gst-plugins-bad/sys/bluez/gstavdtpsrc.c b/subprojects/gst-plugins-bad/sys/bluez/gstavdtpsrc.c index 40d1f9bed4..98fa5d83b5 100644 --- a/subprojects/gst-plugins-bad/sys/bluez/gstavdtpsrc.c +++ b/subprojects/gst-plugins-bad/sys/bluez/gstavdtpsrc.c @@ -105,13 +105,14 @@ gst_avdtp_src_class_init (GstAvdtpSrcClass * klass) g_object_class_install_property (gobject_class, PROP_TRANSPORT, g_param_spec_string ("transport", - "Transport", "Use configured transport", NULL, G_PARAM_READWRITE)); + "Transport", "Use configured transport", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_TRANSPORT_VOLUME, g_param_spec_uint ("transport-volume", "Transport volume", "Volume of the transport (only valid if transport is acquired)", - 0, 127, DEFAULT_VOLUME, G_PARAM_READWRITE)); + 0, 127, DEFAULT_VOLUME, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (element_class, "Bluetooth AVDTP Source", diff --git a/subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp b/subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp index 3197702bb6..0756202205 100644 --- a/subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp +++ b/subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp @@ -221,17 +221,17 @@ gst_dshowvideosink_class_init (GstDshowVideoSinkClass * klass) PROP_KEEP_ASPECT_RATIO, g_param_spec_boolean ("force-aspect-ratio", "Force aspect ratio", "When enabled, scaling will respect original aspect ratio", TRUE, - (GParamFlags)G_PARAM_READWRITE)); + GParamFlags(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FULL_SCREEN, g_param_spec_boolean ("fullscreen", "Full screen mode", "Use full-screen mode (not available when using XOverlay)", FALSE, - (GParamFlags)G_PARAM_READWRITE)); + GParamFlags(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_RENDERER, g_param_spec_string ("renderer", "Renderer", "Force usage of specific DirectShow renderer (EVR, VMR9 or VMR7)", - NULL, (GParamFlags)G_PARAM_READWRITE)); + NULL, GParamFlags(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); } static void diff --git a/subprojects/gst-plugins-bad/sys/directshow/gstdshowvideosrc.cpp b/subprojects/gst-plugins-bad/sys/directshow/gstdshowvideosrc.cpp index 72732f168b..3b0256b73c 100644 --- a/subprojects/gst-plugins-bad/sys/directshow/gstdshowvideosrc.cpp +++ b/subprojects/gst-plugins-bad/sys/directshow/gstdshowvideosrc.cpp @@ -135,20 +135,20 @@ gst_dshowvideosrc_class_init (GstDshowVideoSrcClass * klass) (gobject_class, PROP_DEVICE, g_param_spec_string ("device", "Device", "Directshow device path (@..classID/name)", NULL, - static_cast < GParamFlags > (G_PARAM_READWRITE))); + static_cast < GParamFlags > (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_param_spec_string ("device-name", "Device name", "Human-readable name of the video device", NULL, - static_cast < GParamFlags > (G_PARAM_READWRITE))); + static_cast < GParamFlags > (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); g_object_class_install_property (gobject_class, PROP_DEVICE_INDEX, g_param_spec_int ("device-index", "Device index", "Index of the enumerated video device", 0, G_MAXINT, DEFAULT_PROP_DEVICE_INDEX, - static_cast < GParamFlags > (G_PARAM_READWRITE))); + static_cast < GParamFlags > (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); gst_element_class_add_static_pad_template (gstelement_class, &src_template); diff --git a/subprojects/gst-plugins-bad/sys/directsound/gstdirectsoundsrc.c b/subprojects/gst-plugins-bad/sys/directsound/gstdirectsoundsrc.c index 82a3480ef8..0db242e9d9 100644 --- a/subprojects/gst-plugins-bad/sys/directsound/gstdirectsoundsrc.c +++ b/subprojects/gst-plugins-bad/sys/directsound/gstdirectsoundsrc.c @@ -217,7 +217,8 @@ gst_directsound_src_class_init (GstDirectSoundSrcClass * klass) g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_param_spec_string ("device-name", "Device name", - "Human-readable name of the sound device", NULL, G_PARAM_READWRITE)); + "Human-readable name of the sound device", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DEVICE, diff --git a/subprojects/gst-plugins-bad/sys/dvb/gstdvbsrc.c b/subprojects/gst-plugins-bad/sys/dvb/gstdvbsrc.c index 33ee3ffd15..ef565f7dcb 100644 --- a/subprojects/gst-plugins-bad/sys/dvb/gstdvbsrc.c +++ b/subprojects/gst-plugins-bad/sys/dvb/gstdvbsrc.c @@ -655,62 +655,72 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) g_object_class_install_property (gobject_class, ARG_DVBSRC_ADAPTER, g_param_spec_int ("adapter", "The adapter device number", "The DVB adapter device number (eg. 0 for adapter0)", - 0, 16, DEFAULT_ADAPTER, G_PARAM_READWRITE)); + 0, 16, DEFAULT_ADAPTER, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_FRONTEND, g_param_spec_int ("frontend", "The frontend device number", "The frontend device number (eg. 0 for frontend0)", - 0, 16, DEFAULT_FRONTEND, G_PARAM_READWRITE)); + 0, 16, DEFAULT_FRONTEND, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_FREQUENCY, g_param_spec_uint ("frequency", "Center frequency", "Center frequency to tune into. Measured in kHz for the satellite " "distribution standards and Hz for all the rest", 0, G_MAXUINT, DEFAULT_FREQUENCY, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_POLARITY, g_param_spec_string ("polarity", "polarity", "(DVB-S/S2) Polarity [vhHV] (eg. V for Vertical)", DEFAULT_POLARITY, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_PIDS, g_param_spec_string ("pids", "pids", "Colon-separated list of PIDs (eg. 110:120) to capture. ACT and CAT " "are automatically included but PMT should be added explicitly. " "Special value 8192 gets full MPEG-TS", - DEFAULT_PIDS, GST_PARAM_MUTABLE_PLAYING | G_PARAM_WRITABLE)); + DEFAULT_PIDS, + GST_PARAM_MUTABLE_PLAYING | G_PARAM_WRITABLE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_SYM_RATE, g_param_spec_uint ("symbol-rate", "symbol rate", "(DVB-S/S2, DVB-C) Symbol rate in kBd (kilo bauds)", 0, G_MAXUINT, DEFAULT_SYMBOL_RATE, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_TUNE, g_param_spec_pointer ("tune", - "tune", "Atomically tune to channel. (For Apps)", G_PARAM_WRITABLE)); + "tune", "Atomically tune to channel. (For Apps)", + G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_DISEQC_SRC, g_param_spec_int ("diseqc-source", "diseqc source", "(DVB-S/S2) Selected DiSEqC source. Only needed if you have a " "DiSEqC switch. Otherwise leave at -1 (disabled)", -1, 7, - DEFAULT_DISEQC_SRC, GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + DEFAULT_DISEQC_SRC, + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_BANDWIDTH_HZ, g_param_spec_uint ("bandwidth-hz", "bandwidth-hz", "Channel bandwidth in Hz", 0, G_MAXUINT, DEFAULT_BANDWIDTH_HZ, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); #ifndef GST_REMOVE_DEPRECATED g_object_class_install_property (gobject_class, ARG_DVBSRC_BANDWIDTH, g_param_spec_enum ("bandwidth", "bandwidth", "(DVB-T) Bandwidth. Deprecated", GST_TYPE_DVBSRC_BANDWIDTH, DEFAULT_BANDWIDTH, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | G_PARAM_DEPRECATED)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | G_PARAM_DEPRECATED | + G_PARAM_STATIC_STRINGS)); #endif /* FIXME: DVB-C, DVB-S, DVB-S2 named it as innerFEC */ @@ -719,14 +729,16 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "code-rate-hp", "(DVB-T, DVB-S/S2 and DVB-C) High priority code rate", GST_TYPE_DVBSRC_CODE_RATE, DEFAULT_CODE_RATE_HP, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_CODE_RATE_LP, g_param_spec_enum ("code-rate-lp", "code-rate-lp", "(DVB-T) Low priority code rate", GST_TYPE_DVBSRC_CODE_RATE, DEFAULT_CODE_RATE_LP, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); /* FIXME: should the property be called 'guard-interval' then? */ g_object_class_install_property (gobject_class, ARG_DVBSRC_GUARD, @@ -734,13 +746,15 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "guard", "(DVB-T) Guard Interval", GST_TYPE_DVBSRC_GUARD, DEFAULT_GUARD, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_MODULATION, g_param_spec_enum ("modulation", "modulation", "(DVB-T/T2/C/S2, TURBO and ATSC) Modulation type", GST_TYPE_DVBSRC_MODULATION, DEFAULT_MODULATION, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); /* FIXME: property should be named 'transmission-mode' */ g_object_class_install_property (gobject_class, @@ -748,19 +762,22 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) g_param_spec_enum ("trans-mode", "trans-mode", "(DVB-T) Transmission mode", GST_TYPE_DVBSRC_TRANSMISSION_MODE, DEFAULT_TRANSMISSION_MODE, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_HIERARCHY_INF, g_param_spec_enum ("hierarchy", "hierarchy", "(DVB-T) Hierarchy information", GST_TYPE_DVBSRC_HIERARCHY, DEFAULT_HIERARCHY, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_INVERSION, g_param_spec_enum ("inversion", "inversion", "(DVB-T and DVB-C) Inversion information", GST_TYPE_DVBSRC_INVERSION, DEFAULT_INVERSION, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_STATS_REPORTING_INTERVAL, @@ -768,45 +785,53 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "stats-reporting-interval", "The number of reads before reporting frontend stats", 0, G_MAXUINT, DEFAULT_STATS_REPORTING_INTERVAL, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_TIMEOUT, g_param_spec_uint64 ("timeout", "Timeout", "Post a message after timeout microseconds (0 = disabled)", - 0, G_MAXUINT64, DEFAULT_TIMEOUT, G_PARAM_READWRITE)); + 0, G_MAXUINT64, DEFAULT_TIMEOUT, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_TUNING_TIMEOUT, g_param_spec_uint64 ("tuning-timeout", "Tuning Timeout", "Microseconds to wait before giving up tuning/locking on a signal", 0, G_MAXUINT64, DEFAULT_TUNING_TIMEOUT, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_DVB_BUFFER_SIZE, g_param_spec_uint ("dvb-buffer-size", "dvb-buffer-size", "The kernel buffer size used by the DVB api", - 0, G_MAXUINT, DEFAULT_DVB_BUFFER_SIZE, G_PARAM_READWRITE)); + 0, G_MAXUINT, DEFAULT_DVB_BUFFER_SIZE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_DELSYS, g_param_spec_enum ("delsys", "delsys", "Delivery System", - GST_TYPE_DVBSRC_DELSYS, DEFAULT_DELSYS, G_PARAM_READWRITE)); + GST_TYPE_DVBSRC_DELSYS, DEFAULT_DELSYS, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_PILOT, g_param_spec_enum ("pilot", "pilot", "Pilot (DVB-S2)", GST_TYPE_DVBSRC_PILOT, DEFAULT_PILOT, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ROLLOFF, g_param_spec_enum ("rolloff", "rolloff", "Rolloff (DVB-S2)", GST_TYPE_DVBSRC_ROLLOFF, DEFAULT_ROLLOFF, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_STREAM_ID, g_param_spec_int ("stream-id", "stream-id", "(DVB-T2 and DVB-S2 max 255, ISDB max 65535) Stream ID " "(-1 = disabled)", -1, 65535, DEFAULT_STREAM_ID, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); /* Additional ISDB-T properties */ @@ -817,7 +842,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T layer enabled", "(ISDB-T) Layer Enabled (7 = All layers)", 1, 7, DEFAULT_ISDBT_LAYER_ENABLED, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_PARTIAL_RECEPTION, @@ -825,7 +851,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T partial reception", "(ISDB-T) Partial Reception (-1 = AUTO)", -1, 1, DEFAULT_ISDBT_PARTIAL_RECEPTION, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_SOUND_BROADCASTING, @@ -833,7 +860,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T sound broadcasting", "(ISDB-T) Sound Broadcasting", 0, 1, DEFAULT_ISDBT_SOUND_BROADCASTING, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_SB_SUBCHANNEL_ID, @@ -841,7 +869,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T SB subchannel ID", "(ISDB-T) SB Subchannel ID (-1 = AUTO)", -1, 41, DEFAULT_ISDBT_SB_SEGMENT_IDX, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_SB_SEGMENT_IDX, @@ -849,7 +878,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T SB segment IDX", "(ISDB-T) SB segment IDX", 0, 12, DEFAULT_ISDBT_SB_SEGMENT_IDX, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_SB_SEGMENT_COUNT, @@ -857,46 +887,53 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T SB segment count", "(ISDB-T) SB segment count", 1, 13, DEFAULT_ISDBT_SB_SEGMENT_COUNT, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERA_FEC, g_param_spec_enum ("isdbt-layera-fec", "ISDB-T layer A FEC", "(ISDB-T) layer A Forward Error Correction", GST_TYPE_DVBSRC_CODE_RATE, DEFAULT_ISDBT_LAYERA_FEC, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERB_FEC, g_param_spec_enum ("isdbt-layerb-fec", "ISDB-T layer B FEC", "(ISDB-T) layer B Forward Error Correction", GST_TYPE_DVBSRC_CODE_RATE, DEFAULT_ISDBT_LAYERB_FEC, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERC_FEC, g_param_spec_enum ("isdbt-layerc-fec", "ISDB-T layer A FEC", "(ISDB-T) layer C Forward Error Correction", GST_TYPE_DVBSRC_CODE_RATE, DEFAULT_ISDBT_LAYERC_FEC, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERA_MODULATION, g_param_spec_enum ("isdbt-layera-modulation", "ISDBT layer A modulation", "(ISDB-T) Layer A modulation type", GST_TYPE_DVBSRC_MODULATION, DEFAULT_ISDBT_LAYERA_MODULATION, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERB_MODULATION, g_param_spec_enum ("isdbt-layerb-modulation", "ISDBT layer B modulation", "(ISDB-T) Layer B modulation type", GST_TYPE_DVBSRC_MODULATION, DEFAULT_ISDBT_LAYERB_MODULATION, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERC_MODULATION, g_param_spec_enum ("isdbt-layerc-modulation", "ISDBT layer C modulation", "(ISDB-T) Layer C modulation type", GST_TYPE_DVBSRC_MODULATION, DEFAULT_ISDBT_LAYERC_MODULATION, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERA_SEGMENT_COUNT, @@ -904,7 +941,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T layer A segment count", "(ISDB-T) Layer A segment count (-1 = AUTO)", -1, 13, DEFAULT_ISDBT_LAYERA_SEGMENT_COUNT, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERB_SEGMENT_COUNT, @@ -912,7 +950,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T layer B segment count", "(ISDB-T) Layer B segment count (-1 = AUTO)", -1, 13, DEFAULT_ISDBT_LAYERB_SEGMENT_COUNT, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERC_SEGMENT_COUNT, @@ -920,7 +959,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T layer C segment count", "(ISDB-T) Layer C segment count (-1 = AUTO)", -1, 13, DEFAULT_ISDBT_LAYERC_SEGMENT_COUNT, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERA_TIME_INTERLEAVING, @@ -928,7 +968,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T layer A time interleaving", "(ISDB-T) Layer A time interleaving (-1 = AUTO)", -1, 8, DEFAULT_ISDBT_LAYERA_TIME_INTERLEAVING, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERB_TIME_INTERLEAVING, @@ -936,7 +977,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T layer B time interleaving", "(ISDB-T) Layer B time interleaving (-1 = AUTO)", -1, 8, DEFAULT_ISDBT_LAYERB_TIME_INTERLEAVING, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_ISDBT_LAYERC_TIME_INTERLEAVING, @@ -944,7 +986,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "ISDB-T layer C time interleaving", "(ISDB-T) Layer C time interleaving (-1 = AUTO)", -1, 8, DEFAULT_ISDBT_LAYERC_TIME_INTERLEAVING, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); /* LNB properties (Satellite distribution standards) */ @@ -952,19 +995,22 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) g_param_spec_uint ("lnb-slof", "Tuning Timeout", "LNB's Upper bound for low band reception (kHz)", 0, G_MAXUINT, DEFAULT_LNB_SLOF, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_LNB_LOF1, g_param_spec_uint ("lnb-lof1", "Low band local oscillator frequency", "LNB's Local oscillator frequency used for low band reception (kHz)", 0, G_MAXUINT, DEFAULT_LNB_LOF1, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_DVBSRC_LNB_LOF2, g_param_spec_uint ("lnb-lof2", "High band local oscillator frequency", "LNB's Local oscillator frequency used for high band reception (kHz)", 0, G_MAXUINT, DEFAULT_LNB_LOF2, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); /* Additional DTMB properties */ @@ -973,7 +1019,8 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) g_param_spec_enum ("interleaving", "DTMB Interleaving", "(DTMB) Interleaving type", GST_TYPE_INTERLEAVING, DEFAULT_INTERLEAVING, - GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); /** * GstDvbSrc::tuning-start: diff --git a/subprojects/gst-plugins-bad/sys/fbdev/gstfbdevsink.c b/subprojects/gst-plugins-bad/sys/fbdev/gstfbdevsink.c index d70dd4bb9c..02b35c969a 100644 --- a/subprojects/gst-plugins-bad/sys/fbdev/gstfbdevsink.c +++ b/subprojects/gst-plugins-bad/sys/fbdev/gstfbdevsink.c @@ -421,7 +421,8 @@ gst_fbdevsink_class_init (GstFBDEVSinkClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DEVICE, g_param_spec_string ("device", "device", - "The framebuffer device eg: /dev/fb0", NULL, G_PARAM_READWRITE)); + "The framebuffer device eg: /dev/fb0", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); basesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_fbdevsink_setcaps); basesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_fbdevsink_getcaps); diff --git a/subprojects/gst-plugins-bad/sys/kms/gstkmsallocator.c b/subprojects/gst-plugins-bad/sys/kms/gstkmsallocator.c index 37e3e1141f..15a5c8d103 100644 --- a/subprojects/gst-plugins-bad/sys/kms/gstkmsallocator.c +++ b/subprojects/gst-plugins-bad/sys/kms/gstkmsallocator.c @@ -275,7 +275,7 @@ gst_kms_allocator_class_init (GstKMSAllocatorClass * klass) g_props[PROP_DRM_FD] = g_param_spec_int ("drm-fd", "DRM fd", "DRM file descriptor", -1, G_MAXINT, -1, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (gobject_class, PROP_N, g_props); } diff --git a/subprojects/gst-plugins-base/ext/pango/gstbasetextoverlay.c b/subprojects/gst-plugins-base/ext/pango/gstbasetextoverlay.c index 6d666b86dd..1599520a5d 100644 --- a/subprojects/gst-plugins-base/ext/pango/gstbasetextoverlay.c +++ b/subprojects/gst-plugins-base/ext/pango/gstbasetextoverlay.c @@ -423,7 +423,8 @@ gst_base_text_overlay_class_init (GstBaseTextOverlayClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_TEXT_X, g_param_spec_int ("text-x", "horizontal position.", "Resulting X position of font rendering.", -G_MAXINT, - G_MAXINT, DEFAULT_PROP_TEXT_X, G_PARAM_READABLE)); + G_MAXINT, DEFAULT_PROP_TEXT_X, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * GstBaseTextOverlay:text-y: @@ -433,7 +434,8 @@ gst_base_text_overlay_class_init (GstBaseTextOverlayClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_TEXT_Y, g_param_spec_int ("text-y", "vertical position", "Resulting Y position of font rendering.", -G_MAXINT, - G_MAXINT, DEFAULT_PROP_TEXT_Y, G_PARAM_READABLE)); + G_MAXINT, DEFAULT_PROP_TEXT_Y, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * GstBaseTextOverlay:text-width: @@ -443,7 +445,8 @@ gst_base_text_overlay_class_init (GstBaseTextOverlayClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_TEXT_WIDTH, g_param_spec_uint ("text-width", "width", "Resulting width of font rendering", - 0, G_MAXINT, DEFAULT_PROP_TEXT_WIDTH, G_PARAM_READABLE)); + 0, G_MAXINT, DEFAULT_PROP_TEXT_WIDTH, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * GstBaseTextOverlay:text-height: @@ -453,7 +456,8 @@ gst_base_text_overlay_class_init (GstBaseTextOverlayClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_TEXT_HEIGHT, g_param_spec_uint ("text-height", "height", "Resulting height of font rendering", 0, - G_MAXINT, DEFAULT_PROP_TEXT_HEIGHT, G_PARAM_READABLE)); + G_MAXINT, DEFAULT_PROP_TEXT_HEIGHT, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * GstBaseTextOverlay:xpos: diff --git a/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c b/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c index e0128b710c..2fa7b1882d 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c @@ -490,7 +490,7 @@ gst_drm_dumb_allocator_class_init (GstDRMDumbAllocatorClass * klass) */ g_props[PROP_DRM_FD] = g_param_spec_int ("drm-fd", "DRM fd", "DRM file descriptor", -1, G_MAXINT, -1, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY); /** * GstDRMDumbAllocator:drm-device-path: (type filename): diff --git a/subprojects/gst-plugins-base/gst-libs/gst/rtp/gstrtpbasedepayload.c b/subprojects/gst-plugins-base/gst-libs/gst/rtp/gstrtpbasedepayload.c index 0d814de30c..19b4dc6642 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/rtp/gstrtpbasedepayload.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/rtp/gstrtpbasedepayload.c @@ -315,7 +315,7 @@ gst_rtp_base_depayload_class_init (GstRTPBaseDepayloadClass * klass) g_object_class_install_property (gobject_class, PROP_SOURCE_INFO, g_param_spec_boolean ("source-info", "RTP source information", "Add RTP source information as buffer meta", - DEFAULT_SOURCE_INFO, G_PARAM_READWRITE)); + DEFAULT_SOURCE_INFO, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstRTPBaseDepayload:max-reorder: @@ -330,7 +330,8 @@ gst_rtp_base_depayload_class_init (GstRTPBaseDepayloadClass * klass) g_object_class_install_property (gobject_class, PROP_MAX_REORDER, g_param_spec_int ("max-reorder", "Max Reorder", "Max seqnum reorder before assuming sender has restarted", - 0, G_MAXINT, DEFAULT_MAX_REORDER, G_PARAM_READWRITE)); + 0, G_MAXINT, DEFAULT_MAX_REORDER, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstRTPBaseDepayload:auto-header-extension: diff --git a/subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c b/subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c index 8f2d5d02d9..bcb63c978f 100644 --- a/subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c +++ b/subprojects/gst-plugins-good/gst/debugutils/gstnavigationtest.c @@ -490,7 +490,8 @@ gst_navigationtest_class_init (GstNavigationtestClass * klass) */ g_object_class_install_property (gobject_class, PROP_DISPLAY_MOUSE, g_param_spec_boolean ("display-mouse", "Display mouse", - "Toggles display of mouse events", TRUE, G_PARAM_READWRITE)); + "Toggles display of mouse events", TRUE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * navigationtest:display-touch: @@ -501,7 +502,8 @@ gst_navigationtest_class_init (GstNavigationtestClass * klass) */ g_object_class_install_property (gobject_class, PROP_DISPLAY_TOUCH, g_param_spec_boolean ("display-touch", "Display touch", - "Toggles display of touchscreen events", TRUE, G_PARAM_READWRITE)); + "Toggles display of touchscreen events", TRUE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); element_class->change_state = GST_DEBUG_FUNCPTR (gst_navigationtest_change_state); diff --git a/subprojects/gst-plugins-good/gst/debugutils/gstpushfilesrc.c b/subprojects/gst-plugins-good/gst/debugutils/gstpushfilesrc.c index 8002e70b5e..79d9d55cda 100644 --- a/subprojects/gst-plugins-good/gst/debugutils/gstpushfilesrc.c +++ b/subprojects/gst-plugins-good/gst/debugutils/gstpushfilesrc.c @@ -129,31 +129,34 @@ gst_push_file_src_class_init (GstPushFileSrcClass * g_class) g_object_class_install_property (gobject_class, PROP_TIME_SEGMENT, g_param_spec_boolean ("time-segment", "Time Segment", - "Emit TIME SEGMENTS", DEFAULT_TIME_SEGMENT, G_PARAM_READWRITE)); + "Emit TIME SEGMENTS", DEFAULT_TIME_SEGMENT, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_STREAM_TIME, g_param_spec_int64 ("stream-time", "Stream Time", "Initial Stream Time (if time-segment TRUE)", 0, G_MAXINT64, - DEFAULT_STREAM_TIME, G_PARAM_READWRITE)); + DEFAULT_STREAM_TIME, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_START_TIME, g_param_spec_int64 ("start-time", "Start Time", "Initial Start Time (if time-segment TRUE)", 0, G_MAXINT64, - DEFAULT_START_TIME, G_PARAM_READWRITE)); + DEFAULT_START_TIME, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_INITIAL_TIMESTAMP, g_param_spec_uint64 ("initial-timestamp", "Initial Timestamp", "Initial Buffer Timestamp (if time-segment TRUE)", 0, G_MAXUINT64, - DEFAULT_INITIAL_TIMESTAMP, G_PARAM_READWRITE)); + DEFAULT_INITIAL_TIMESTAMP, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_RATE, g_param_spec_double ("rate", "Rate", "Rate to use in TIME SEGMENT", - G_MINDOUBLE, G_MAXDOUBLE, DEFAULT_RATE, G_PARAM_READWRITE)); + G_MINDOUBLE, G_MAXDOUBLE, DEFAULT_RATE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_APPLIED_RATE, g_param_spec_double ("applied-rate", "Applied Rate", "Applied rate to use in TIME SEGMENT", G_MINDOUBLE, G_MAXDOUBLE, - DEFAULT_APPLIED_RATE, G_PARAM_READWRITE)); + DEFAULT_APPLIED_RATE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_add_static_pad_template (element_class, &srctemplate); diff --git a/subprojects/gst-plugins-good/gst/multipart/multipartdemux.c b/subprojects/gst-plugins-good/gst/multipart/multipartdemux.c index 28bee57092..7795152163 100644 --- a/subprojects/gst-plugins-good/gst/multipart/multipartdemux.c +++ b/subprojects/gst-plugins-good/gst/multipart/multipartdemux.c @@ -155,7 +155,7 @@ gst_multipart_demux_class_init (GstMultipartDemuxClass * klass) g_object_class_install_property (gobject_class, PROP_SINGLE_STREAM, g_param_spec_boolean ("single-stream", "Single Stream", "Assume that there is only one stream whose content-type will not change and emit no-more-pads as soon as the first boundary content is parsed, decoded, and pads are linked", - DEFAULT_SINGLE_STREAM, G_PARAM_READWRITE)); + DEFAULT_SINGLE_STREAM, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* populate gst names and mime types pairs */ klass->gstnames = g_hash_table_new (g_str_hash, g_str_equal); diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpsbcpay.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpsbcpay.c index 676416bc00..db511e6eb4 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpsbcpay.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpsbcpay.c @@ -310,7 +310,8 @@ gst_rtp_sbc_pay_class_init (GstRtpSBCPayClass * klass) g_param_spec_int ("min-frames", "minimum frame number", "Minimum quantity of frames to send in one packet " "(-1 for maximum allowed by the mtu)", - -1, G_MAXINT, DEFAULT_MIN_FRAMES, G_PARAM_READWRITE)); + -1, G_MAXINT, DEFAULT_MIN_FRAMES, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_add_static_pad_template (element_class, &gst_rtp_sbc_pay_sink_factory); diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2radio.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2radio.c index 0c69b7d303..0a6248b01c 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2radio.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2radio.c @@ -303,12 +303,13 @@ gst_v4l2radio_class_init (GstV4l2RadioClass * klass) g_object_class_install_property (gobject_class, ARG_DEVICE, g_param_spec_string ("device", "Radio device location", "Video4Linux2 radio device location", - DEFAULT_PROP_DEVICE, G_PARAM_READWRITE)); + DEFAULT_PROP_DEVICE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_FREQUENCY, g_param_spec_int ("frequency", "Station frequency", "Station frequency in Hz", - MIN_FREQUENCY, MAX_FREQUENCY, DEFAULT_FREQUENCY, G_PARAM_READWRITE)); + MIN_FREQUENCY, MAX_FREQUENCY, DEFAULT_FREQUENCY, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_v4l2radio_change_state); diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2sink.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2sink.c index f82a86e7cc..bc6bab815d 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2sink.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2sink.c @@ -163,19 +163,21 @@ gst_v4l2sink_class_init (GstV4l2SinkClass * klass) g_object_class_install_property (gobject_class, PROP_CROP_TOP, g_param_spec_int ("crop-top", "Crop top", "The topmost (y) coordinate of the video crop; top left corner of image is 0,0", - 0x80000000, 0x7fffffff, 0, G_PARAM_READWRITE)); + 0x80000000, 0x7fffffff, 0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CROP_LEFT, g_param_spec_int ("crop-left", "Crop left", "The leftmost (x) coordinate of the video crop; top left corner of image is 0,0", - 0x80000000, 0x7fffffff, 0, G_PARAM_READWRITE)); + 0x80000000, 0x7fffffff, 0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CROP_WIDTH, g_param_spec_uint ("crop-width", "Crop width", "The width of the video crop; default is equal to negotiated image width", - 0, 0xffffffff, 0, G_PARAM_READWRITE)); + 0, 0xffffffff, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CROP_HEIGHT, g_param_spec_uint ("crop-height", "Crop height", "The height of the video crop; default is equal to negotiated image height", - 0, 0xffffffff, 0, G_PARAM_READWRITE)); + 0, 0xffffffff, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (element_class, "Video (video4linux2) Sink", "Sink/Video", diff --git a/subprojects/gst-plugins-good/sys/ximage/gstximagesrc.c b/subprojects/gst-plugins-good/sys/ximage/gstximagesrc.c index d0193ebe7f..8c4dd1766d 100644 --- a/subprojects/gst-plugins-good/sys/ximage/gstximagesrc.c +++ b/subprojects/gst-plugins-good/sys/ximage/gstximagesrc.c @@ -1331,7 +1331,7 @@ gst_ximage_src_class_init (GstXImageSrcClass * klass) g_object_class_install_property (gc, PROP_STARTY, g_param_spec_uint ("starty", "Start Y co-ordinate", "Y 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:endx: * @@ -1341,7 +1341,7 @@ gst_ximage_src_class_init (GstXImageSrcClass * klass) g_object_class_install_property (gc, PROP_ENDX, g_param_spec_uint ("endx", "End X", "X coordinate of bottom right corner of area to be recorded (0 for bottom right of screen)", - 0, G_MAXINT, 0, G_PARAM_READWRITE)); + 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstXImageSrc:endy: * @@ -1351,7 +1351,7 @@ gst_ximage_src_class_init (GstXImageSrcClass * klass) g_object_class_install_property (gc, PROP_ENDY, g_param_spec_uint ("endy", "End Y", "Y coordinate of bottom right corner of area to be recorded (0 for bottom right of screen)", - 0, G_MAXINT, 0, G_PARAM_READWRITE)); + 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstXImageSrc:remote: diff --git a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-latency-bin.c b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-latency-bin.c index 13dd57ec72..3ad7213421 100644 --- a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-latency-bin.c +++ b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-latency-bin.c @@ -78,7 +78,8 @@ gst_rtsp_latency_bin_class_init (GstRTSPLatencyBinClass * klass) g_object_class_install_property (gobject_klass, PROP_ELEMENT, g_param_spec_object ("element", "The Element", "The GstElement to prevent from affecting piplines latency", - GST_TYPE_ELEMENT, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE)); + GST_TYPE_ELEMENT, + G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_klass->change_state = GST_DEBUG_FUNCPTR (gst_rtsp_latency_bin_change_state); diff --git a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c index 4514ce905e..ae488ebf2d 100644 --- a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c +++ b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c @@ -422,7 +422,7 @@ gst_rtsp_media_class_init (GstRTSPMediaClass * klass) g_object_class_install_property (gobject_class, PROP_ELEMENT, g_param_spec_object ("element", "The Element", "The GstBin to use for streaming the media", GST_TYPE_ELEMENT, - 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_TIME_PROVIDER, g_param_spec_boolean ("time-provider", "Time Provider",