docs: add note/warning to gst_index_get_writer_id() docs about the OBJECT_LOCK
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 19 Apr 2011 12:23:19 +0000 (13:23 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 19 Apr 2011 12:23:19 +0000 (13:23 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=646811

gst/gstindex.c

index f606fbf..27d4b8b 100644 (file)
@@ -695,6 +695,12 @@ gst_index_gtype_resolver (GstIndex * index, GstObject * writer,
  * to a string. That string will be used to register or look up an id
  * in the index.
  *
+ * <note>
+ * The caller must not hold @writer's #GST_OBJECT_LOCK, as the default
+ * resolver may call functions that take the object lock as well, and
+ * the lock is not recursive.
+ * </note>
+ *
  * Returns: TRUE if the writer would be mapped to an id.
  */
 gboolean