Commit 5f420edc authored by Thibault Saunier's avatar Thibault Saunier 🌵 Committed by GStreamer Marge Bot

nle: Use G_PARAM_DEPRECATED for media-duration-factor

Part-of: <!175>
parent cb02c15d
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment