mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
docs: improve API reference for gst_caps_get_structure()
This commit is contained in:
parent
8995a45593
commit
01166ec0cd
1 changed files with 8 additions and 1 deletions
|
@ -793,7 +793,14 @@ gst_caps_get_size (const GstCaps * caps)
|
|||
* WARNING: This function takes a const GstCaps *, but returns a
|
||||
* non-const GstStructure *. This is for programming convenience --
|
||||
* the caller should be aware that structures inside a constant
|
||||
* #GstCaps should not be modified.
|
||||
* #GstCaps should not be modified. However, if you know the caps
|
||||
* are writable, either because you have just copied them or made
|
||||
* them writable with gst_caps_make_writable(), you may modify the
|
||||
* structure returned in the usual way, e.g. with functions like
|
||||
* gst_structure_set_simple().
|
||||
*
|
||||
* You do not need to free or unref the structure returned, it
|
||||
* belongs to the #GstCaps.
|
||||
*
|
||||
* Returns: a pointer to the #GstStructure corresponding to @index
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue