context: add some more documentation
authorThiago Santos <thiagoss@osg.samsung.com>
Tue, 10 Nov 2015 17:37:27 +0000 (14:37 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 10 Nov 2015 20:37:22 +0000 (17:37 -0300)
Add a short paragraph on what means for a context to be persistent

gst/gstcontext.c

index b535574..717d8d2 100644 (file)
  * known context on the element that asks for it if possible. Otherwise the
  * application should provide one if it can.
  *
+ * #GstContext<!-- -->s can be persistent.
+ * A persistent #GstContext is kept in elements when they reach
+ * %GST_STATE_NULL, non-persistent ones will be removed.
+ * Also, a non-persistent context won't override a previous persistent
+ * context set to an element.
+ *
  * Since: 1.2
  */