mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
context: Return a non-const GstStructure to make code simpler and update docs
This commit is contained in:
parent
54c678a21e
commit
0d6440b8d9
2 changed files with 5 additions and 5 deletions
|
@ -168,12 +168,13 @@ gst_context_new (void)
|
||||||
* Access the structure of the context.
|
* Access the structure of the context.
|
||||||
*
|
*
|
||||||
* Returns: (transfer none): The structure of the context. The structure is
|
* Returns: (transfer none): The structure of the context. The structure is
|
||||||
* still owned by the context, which means that you should not modify it,
|
* still owned by the context, which means that you should not modify it unless
|
||||||
* free it and that the pointer becomes invalid when you free the context.
|
* the context is writable, and should not free it and that the pointer becomes
|
||||||
|
* invalid when you free the context.
|
||||||
*
|
*
|
||||||
* Since: 1.2
|
* Since: 1.2
|
||||||
*/
|
*/
|
||||||
const GstStructure *
|
GstStructure *
|
||||||
gst_context_get_structure (GstContext * context)
|
gst_context_get_structure (GstContext * context)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (GST_IS_CONTEXT (context), NULL);
|
g_return_val_if_fail (GST_IS_CONTEXT (context), NULL);
|
||||||
|
|
|
@ -145,8 +145,7 @@ gst_context_replace (GstContext **old_context, GstContext *new_context)
|
||||||
|
|
||||||
GstContext * gst_context_new (void) G_GNUC_MALLOC;
|
GstContext * gst_context_new (void) G_GNUC_MALLOC;
|
||||||
|
|
||||||
const GstStructure *
|
GstStructure * gst_context_get_structure (GstContext *context);
|
||||||
gst_context_get_structure (GstContext *context);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue