From 0d6440b8d93b9d05ea73e3f0fa8ae223fcd9dd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 17 Apr 2013 12:17:49 +0200 Subject: [PATCH] context: Return a non-const GstStructure to make code simpler and update docs --- gst/gstcontext.c | 7 ++++--- gst/gstcontext.h | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gst/gstcontext.c b/gst/gstcontext.c index 3d63fb41ba..8f45590462 100644 --- a/gst/gstcontext.c +++ b/gst/gstcontext.c @@ -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); diff --git a/gst/gstcontext.h b/gst/gstcontext.h index 61e9180665..4c3699cafd 100644 --- a/gst/gstcontext.h +++ b/gst/gstcontext.h @@ -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