Commit 8723e36e authored by Wim Taymans's avatar Wim Taymans

gst: set the unset flag on Buffers fields

These buffer fields are unset so set the flag accordingly.
In 0.2 this didn't really negotiate to a common set of parameters
but that was then ignored and a default set of params was used
and things worked.

In the compat layer, however, this causes problems because a failed
negotiation will now result in an error.

Setting the unset flag is the right thing to do but we might have
to do a workaround on the server to support the old broken definition.
parent 0d6de173
......@@ -712,9 +712,9 @@ on_format_changed (void *data,
spa_pod_builder_init (&b, buffer, sizeof (buffer));
params[0] = spa_pod_builder_object (&b,
t->param.idBuffers, t->param_buffers.Buffers,
":", t->param_buffers.size, "ir", 0, SPA_PROP_RANGE(0, INT32_MAX),
":", t->param_buffers.stride, "ir", 0, SPA_PROP_RANGE(0, INT32_MAX),
":", t->param_buffers.buffers, "ir", 16, SPA_PROP_RANGE(1, INT32_MAX),
":", t->param_buffers.size, "iru", 0, SPA_PROP_RANGE(0, INT32_MAX),
":", t->param_buffers.stride, "iru", 0, SPA_PROP_RANGE(0, INT32_MAX),
":", t->param_buffers.buffers, "iru", 16, SPA_PROP_RANGE(1, INT32_MAX),
":", t->param_buffers.align, "i", 16);
params[1] = spa_pod_builder_object (&b,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment