mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
apidocs: markup example as highlightable example and copy same for structure
structures can be printed like we can do for caps. Mark the example so that gtk-doc can pretty print and xref it.
This commit is contained in:
parent
436b0e7275
commit
1ec60ae392
2 changed files with 9 additions and 3 deletions
|
@ -1781,9 +1781,9 @@ gst_caps_replace (GstCaps ** caps, GstCaps * newcaps)
|
|||
* can be converted back to a #GstCaps by gst_caps_from_string().
|
||||
*
|
||||
* For debugging purposes its easier to do something like this:
|
||||
* <programlisting>
|
||||
* |[
|
||||
* GST_LOG ("caps are %" GST_PTR_FORMAT, caps);
|
||||
* </programlisting>
|
||||
* ]|
|
||||
* This prints the caps in human readble form.
|
||||
*
|
||||
* Returns: a newly allocated string representing @caps.
|
||||
|
|
|
@ -1546,6 +1546,12 @@ priv_gst_structure_append_to_gstring (const GstStructure * structure,
|
|||
*
|
||||
* Converts @structure to a human-readable string representation.
|
||||
*
|
||||
* For debugging purposes its easier to do something like this:
|
||||
* |[
|
||||
* GST_LOG ("structure is %" GST_PTR_FORMAT, structure);
|
||||
* ]|
|
||||
* This prints the structure in human readble form.
|
||||
*
|
||||
* Returns: a pointer to string allocated by g_malloc(). g_free() after
|
||||
* usage.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue