From 91f9b986a120d0f63aa8f8f2f0534aabb11a0b86 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 19 Oct 2010 09:49:47 +0300 Subject: [PATCH] various (gst): add a missing G_PARAM_STATIC_STRINGS flags --- gst/iec958/ac3iec.c | 2 +- gst/mpegaudioparse/gstmpegaudioparse.c | 4 ++-- gst/mpegstream/gstmpegparse.c | 8 +++++--- gst/mpegstream/gstrfc2250enc.c | 4 ++-- gst/realmedia/pnmsrc.c | 2 +- gst/realmedia/rdtmanager.c | 2 +- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/gst/iec958/ac3iec.c b/gst/iec958/ac3iec.c index db29133..d6c44ca 100644 --- a/gst/iec958/ac3iec.c +++ b/gst/iec958/ac3iec.c @@ -160,7 +160,7 @@ ac3iec_class_init (AC3IECClass * klass) g_object_class_install_property (gobject_class, PROP_RAW_AUDIO, g_param_spec_boolean ("raw-audio", "raw-audio", "If true, source pad caps are set to raw audio.", - FALSE, G_PARAM_READWRITE)); + FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = ac3iec_change_state; } diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c index be23540..9ebc20e 100644 --- a/gst/mpegaudioparse/gstmpegaudioparse.c +++ b/gst/mpegaudioparse/gstmpegaudioparse.c @@ -321,10 +321,10 @@ gst_mp3parse_class_init (GstMPEGAudioParseClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SKIP, g_param_spec_int ("skip", "skip", "skip", - G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); + G_MININT, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BIT_RATE, g_param_spec_int ("bitrate", "Bitrate", "Bit Rate", - G_MININT, G_MAXINT, 0, G_PARAM_READABLE)); + G_MININT, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = gst_mp3parse_change_state; diff --git a/gst/mpegstream/gstmpegparse.c b/gst/mpegstream/gstmpegparse.c index ce918a3..d441a42 100644 --- a/gst/mpegstream/gstmpegparse.c +++ b/gst/mpegstream/gstmpegparse.c @@ -170,15 +170,17 @@ gst_mpeg_parse_class_init (GstMPEGParseClass * klass) g_param_spec_int ("max_scr_gap", "Max SCR gap", "Maximum allowed gap between expected and actual " "SCR values. -1 means never adjust.", -1, G_MAXINT, - DEFAULT_MAX_SCR_GAP, G_PARAM_READWRITE)); + DEFAULT_MAX_SCR_GAP, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BYTE_OFFSET, g_param_spec_uint64 ("byte-offset", "Byte Offset", "Emit reached-offset signal when the byte offset is reached.", - 0, G_MAXUINT64, G_MAXUINT64, G_PARAM_READWRITE)); + 0, G_MAXUINT64, G_MAXUINT64, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_TIME_OFFSET, g_param_spec_uint64 ("time-offset", "Time Offset", "Time offset in the stream.", - 0, G_MAXUINT64, G_MAXUINT64, G_PARAM_READABLE)); + 0, G_MAXUINT64, G_MAXUINT64, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } static void diff --git a/gst/mpegstream/gstrfc2250enc.c b/gst/mpegstream/gstrfc2250enc.c index 0f88e85..e5fcb78 100644 --- a/gst/mpegstream/gstrfc2250enc.c +++ b/gst/mpegstream/gstrfc2250enc.c @@ -123,10 +123,10 @@ gst_rfc2250_enc_class_init (GstRFC2250EncClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BIT_RATE, g_param_spec_uint ("bit_rate", "bit_rate", "bit_rate", - 0, G_MAXUINT, 0, G_PARAM_READABLE)); + 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MPEG2, g_param_spec_boolean ("mpeg2", "mpeg2", "is this an mpeg2 stream", - FALSE, G_PARAM_READABLE)); + FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); gobject_class->get_property = gst_rfc2250_enc_get_property; diff --git a/gst/realmedia/pnmsrc.c b/gst/realmedia/pnmsrc.c index 128cf74..a8b168e 100644 --- a/gst/realmedia/pnmsrc.c +++ b/gst/realmedia/pnmsrc.c @@ -116,7 +116,7 @@ gst_pnm_src_class_init (GstPNMSrcClass * klass) g_object_class_install_property (gobject_class, PROP_LOCATION, g_param_spec_string ("location", "PNM Location", "Location of the PNM url to read", - DEFAULT_LOCATION, G_PARAM_READWRITE)); + DEFAULT_LOCATION, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstpushsrc_class->create = gst_pnm_src_create; } diff --git a/gst/realmedia/rdtmanager.c b/gst/realmedia/rdtmanager.c index c5b64de..313d0de 100644 --- a/gst/realmedia/rdtmanager.c +++ b/gst/realmedia/rdtmanager.c @@ -428,7 +428,7 @@ gst_rdt_manager_class_init (GstRDTManagerClass * g_class) g_object_class_install_property (gobject_class, PROP_LATENCY, g_param_spec_uint ("latency", "Buffer latency in ms", "Amount of ms to buffer", 0, G_MAXUINT, DEFAULT_LATENCY_MS, - G_PARAM_READWRITE)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstRDTManager::request-pt-map: -- 2.7.4