mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
query: parsing allocation query need not provide reffed caps
... in line with other query parsing function.
This commit is contained in:
parent
31c450a5d5
commit
617a8b3811
1 changed files with 5 additions and 2 deletions
|
@ -1489,7 +1489,7 @@ gst_query_new_allocation (GstCaps * caps, gboolean need_pool)
|
|||
/**
|
||||
* gst_query_parse_allocation:
|
||||
* @query: a #GstQuery
|
||||
* @caps: (out callee-allocates) (allow-none): The #GstCaps
|
||||
* @caps: (out transfer none) (allow-none): The #GstCaps
|
||||
* @need_pool: (out) (allow-none): Whether a #GstBufferPool is needed
|
||||
*
|
||||
* Parse an allocation query, writing the requested caps in @caps and
|
||||
|
@ -1505,8 +1505,11 @@ gst_query_parse_allocation (GstQuery * query, GstCaps ** caps,
|
|||
g_return_if_fail (GST_QUERY_TYPE (query) == GST_QUERY_ALLOCATION);
|
||||
|
||||
structure = GST_QUERY_STRUCTURE (query);
|
||||
if (caps) {
|
||||
*caps = g_value_get_boxed (gst_structure_id_get_value (structure,
|
||||
GST_QUARK (CAPS)));
|
||||
}
|
||||
gst_structure_id_get (structure,
|
||||
GST_QUARK (CAPS), GST_TYPE_CAPS, caps,
|
||||
GST_QUARK (NEED_POOL), G_TYPE_BOOLEAN, need_pool, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue