summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-09-17 21:36:22 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-09-18 21:42:42 +0200
commit921ab73340747b7a29f7e12e5fc36a91cc3a35f1 (patch)
treeed63adfe6250bcafa8c6089f6240aecdb1b2f70d /gst
parentaacedb9da4196f97e1649455f1e0b9540ccc76dc (diff)
context: Fix unit test for GstContext changes
Diffstat (limited to 'gst')
-rw-r--r--gst/gstcontext.c1
-rw-r--r--gst/gstmessage.c2
-rw-r--r--gst/gstquery.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/gst/gstcontext.c b/gst/gstcontext.c
index c251f64e8..359526b17 100644
--- a/gst/gstcontext.c
+++ b/gst/gstcontext.c
@@ -99,6 +99,7 @@ _gst_context_free (GstContext * context)
gst_structure_set_parent_refcount (structure, NULL);
gst_structure_free (structure);
}
+ g_free (context->context_type);
g_slice_free1 (sizeof (GstContext), context);
}
diff --git a/gst/gstmessage.c b/gst/gstmessage.c
index 56170a032..ea4c5a9db 100644
--- a/gst/gstmessage.c
+++ b/gst/gstmessage.c
@@ -2245,7 +2245,7 @@ gst_message_new_need_context (GstObject * src, const gchar * context_type)
g_return_val_if_fail (context_type != NULL, NULL);
structure = gst_structure_new_id (GST_QUARK (MESSAGE_NEED_CONTEXT),
- GST_QUARK (CONTEXT_TYPE), context_type, NULL);
+ GST_QUARK (CONTEXT_TYPE), G_TYPE_STRING, context_type, NULL);
message = gst_message_new_custom (GST_MESSAGE_NEED_CONTEXT, src, structure);
return message;
diff --git a/gst/gstquery.c b/gst/gstquery.c
index 54e5b72fe..44664130c 100644
--- a/gst/gstquery.c
+++ b/gst/gstquery.c
@@ -2508,7 +2508,7 @@ gst_query_new_context (const gchar * context_type)
g_return_val_if_fail (context_type != NULL, NULL);
structure = gst_structure_new_id (GST_QUARK (QUERY_CONTEXT),
- GST_QUARK (CONTEXT_TYPE), context_type, NULL);
+ GST_QUARK (CONTEXT_TYPE), G_TYPE_STRING, context_type, NULL);
query = gst_query_new_custom (GST_QUERY_CONTEXT, structure);
return query;