context: Return a non-const GstStructure to make code simpler and update docs

This commit is contained in:
Sebastian Dröge 2013-04-17 12:17:49 +02:00
parent 54c678a21e
commit 0d6440b8d9
2 changed files with 5 additions and 5 deletions

View file

@ -168,12 +168,13 @@ gst_context_new (void)
* Access the structure of the context.
*
* Returns: (transfer none): The structure of the context. The structure is
* still owned by the context, which means that you should not modify it,
* free it and that the pointer becomes invalid when you free the context.
* still owned by the context, which means that you should not modify it unless
* the context is writable, and should not free it and that the pointer becomes
* invalid when you free the context.
*
* Since: 1.2
*/
const GstStructure *
GstStructure *
gst_context_get_structure (GstContext * context)
{
g_return_val_if_fail (GST_IS_CONTEXT (context), NULL);

View file

@ -145,8 +145,7 @@ gst_context_replace (GstContext **old_context, GstContext *new_context)
GstContext * gst_context_new (void) G_GNUC_MALLOC;
const GstStructure *
gst_context_get_structure (GstContext *context);
GstStructure * gst_context_get_structure (GstContext *context);
G_END_DECLS