From: <wt...@ke...> - 2009-04-14 17:13:28
|
Module: gstreamer Branch: master Commit: 004f981edb839397f68029fa0cf7f23537826165 URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=004f981edb839397f68029fa0cf7f23537826165 Author: Wim Taymans <wim...@co...> Date: Tue Apr 14 19:11:44 2009 +0200 paramspecs: add note about racyness Add a note about potential racyness in _is_mutable(). --- gst/gstparamspecs.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/gst/gstparamspecs.c b/gst/gstparamspecs.c index 120113b..7476cd1 100644 --- a/gst/gstparamspecs.c +++ b/gst/gstparamspecs.c @@ -214,6 +214,11 @@ gst_param_spec_fraction (const gchar * name, const gchar * nick, * Checks if an object property for the GstElement given in @element * may be modified given the current state of @element. * + * Note: By the time this method returns, the state of the element might have + * changed already. Use this method only if you can control the state of the + * element between calling this method and setting the property, such as with a + * mutex. + * * Returns: TRUE if the property may be modified * * Since: 0.10.23 |