mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
query: set all default values
Fill all query values with good defaults.
This commit is contained in:
parent
6ca5d44704
commit
bb2d7241fa
1 changed files with 4 additions and 2 deletions
|
@ -1575,9 +1575,11 @@ gst_query_new_allocation (GstCaps * caps, gboolean need_pool)
|
|||
structure = gst_structure_id_new (GST_QUARK (QUERY_ALLOCATION),
|
||||
GST_QUARK (CAPS), GST_TYPE_CAPS, caps,
|
||||
GST_QUARK (NEED_POOL), G_TYPE_BOOLEAN, need_pool,
|
||||
GST_QUARK (PREFIX), G_TYPE_UINT, 0,
|
||||
GST_QUARK (ALIGN), G_TYPE_UINT, 1,
|
||||
GST_QUARK (SIZE), G_TYPE_UINT, 0,
|
||||
GST_QUARK (MIN_BUFFERS), G_TYPE_UINT, 0,
|
||||
GST_QUARK (MAX_BUFFERS), G_TYPE_UINT, 0,
|
||||
GST_QUARK (PREFIX), G_TYPE_UINT, 0,
|
||||
GST_QUARK (ALIGN), G_TYPE_UINT, 0,
|
||||
GST_QUARK (POOL), GST_TYPE_BUFFER_POOL, NULL, NULL);
|
||||
|
||||
query = gst_query_new (GST_QUERY_ALLOCATION, structure);
|
||||
|
|
Loading…
Reference in a new issue