mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
nle: Use G_PARAM_DEPRECATED for media-duration-factor
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/175>
This commit is contained in:
parent
cb02c15d57
commit
5f420edc69
1 changed files with 1 additions and 2 deletions
|
@ -256,7 +256,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);
|
||||
1.0, G_PARAM_READWRITE | G_PARAM_DEPRECATED);
|
||||
g_object_class_install_property (gobject_class, PROP_MEDIA_DURATION_FACTOR,
|
||||
properties[PROP_MEDIA_DURATION_FACTOR]);
|
||||
|
||||
|
@ -693,7 +693,6 @@ nle_object_get_property (GObject * object, guint prop_id,
|
|||
g_value_set_boolean (value, NLE_OBJECT_IS_EXPANDABLE (object));
|
||||
break;
|
||||
case PROP_MEDIA_DURATION_FACTOR:
|
||||
g_warning ("The media-duration-factor property is deprecated");
|
||||
g_value_set_double (value, 1.0);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue