mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
nettimeprovider: Mark address, port and clock properties CONSTRUCT_ONLY
They can't sensibly be changed after construction.
This commit is contained in:
parent
bdc60306c7
commit
5dc8cea6f4
1 changed files with 5 additions and 4 deletions
|
@ -112,15 +112,16 @@ gst_net_time_provider_class_init (GstNetTimeProviderClass * klass)
|
|||
g_object_class_install_property (gobject_class, PROP_PORT,
|
||||
g_param_spec_int ("port", "port",
|
||||
"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_param_spec_string ("address", "address",
|
||||
"The address to bind on, as a dotted quad (x.x.x.x)",
|
||||
DEFAULT_ADDRESS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
"The address to bind on, as a dotted quad (x.x.x.x)", DEFAULT_ADDRESS,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
|
||||
g_object_class_install_property (gobject_class, PROP_CLOCK,
|
||||
g_param_spec_object ("clock", "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_param_spec_boolean ("active", "Active",
|
||||
"TRUE if the clock will respond to queries over the network", TRUE,
|
||||
|
|
Loading…
Reference in a new issue