nettimeprovider: Mark address, port and clock properties CONSTRUCT_ONLY

They can't sensibly be changed after construction.
This commit is contained in:
Sebastian Dröge 2016-01-03 14:06:16 +02:00
parent bdc60306c7
commit 5dc8cea6f4

View file

@ -112,15 +112,16 @@ gst_net_time_provider_class_init (GstNetTimeProviderClass * klass)
g_object_class_install_property (gobject_class, PROP_PORT, g_object_class_install_property (gobject_class, PROP_PORT,
g_param_spec_int ("port", "port", g_param_spec_int ("port", "port",
"The port to receive the packets from, 0=allocate", 0, G_MAXUINT16, "The port to receive the packets from, 0=allocate", 0, G_MAXUINT16,
DEFAULT_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); DEFAULT_PORT,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_ADDRESS, g_object_class_install_property (gobject_class, PROP_ADDRESS,
g_param_spec_string ("address", "address", g_param_spec_string ("address", "address",
"The address to bind on, as a dotted quad (x.x.x.x)", "The address to bind on, as a dotted quad (x.x.x.x)", DEFAULT_ADDRESS,
DEFAULT_ADDRESS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_CLOCK, g_object_class_install_property (gobject_class, PROP_CLOCK,
g_param_spec_object ("clock", "Clock", g_param_spec_object ("clock", "Clock",
"The clock to export over the network", GST_TYPE_CLOCK, "The clock to export over the network", GST_TYPE_CLOCK,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_ACTIVE, g_object_class_install_property (gobject_class, PROP_ACTIVE,
g_param_spec_boolean ("active", "Active", g_param_spec_boolean ("active", "Active",
"TRUE if the clock will respond to queries over the network", TRUE, "TRUE if the clock will respond to queries over the network", TRUE,