summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/export-sink.c5
-rw-r--r--src/examples/export-source.c6
-rw-r--r--src/examples/local-v4l2.c4
3 files changed, 9 insertions, 6 deletions
diff --git a/src/examples/export-sink.c b/src/examples/export-sink.c
index a7c4af0e..82815b43 100644
--- a/src/examples/export-sink.c
+++ b/src/examples/export-sink.c
@@ -340,7 +340,8 @@ static int impl_port_set_param(void *object,
}
static int impl_port_use_buffers(void *object, enum spa_direction direction, uint32_t port_id,
- struct spa_buffer **buffers, uint32_t n_buffers)
+ uint32_t flags,
+ struct spa_buffer **buffers, uint32_t n_buffers)
{
struct data *d = object;
uint32_t i;
@@ -527,7 +528,7 @@ int main(int argc, char *argv[])
data.info = SPA_PORT_INFO_INIT();
data.info.change_mask = SPA_PORT_CHANGE_MASK_FLAGS;
- data.info.flags = SPA_PORT_FLAG_CAN_USE_BUFFERS;
+ data.info.flags = 0;
data.info.change_mask = SPA_PORT_CHANGE_MASK_PARAMS;
data.params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ);
data.params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
diff --git a/src/examples/export-source.c b/src/examples/export-source.c
index 5f7dacc7..a69babdf 100644
--- a/src/examples/export-source.c
+++ b/src/examples/export-source.c
@@ -304,10 +304,12 @@ static int impl_port_set_param(void *object,
}
static int impl_port_use_buffers(void *object, enum spa_direction direction, uint32_t port_id,
- struct spa_buffer **buffers, uint32_t n_buffers)
+ uint32_t flags,
+ struct spa_buffer **buffers, uint32_t n_buffers)
{
struct data *d = object;
uint32_t i;
+
for (i = 0; i < n_buffers; i++) {
struct buffer *b = &d->buffers[i];
struct spa_data *datas = buffers[i]->datas;
@@ -521,7 +523,7 @@ int main(int argc, char *argv[])
SPA_PORT_CHANGE_MASK_PROPS |
SPA_PORT_CHANGE_MASK_PARAMS;
data.info = SPA_PORT_INFO_INIT();
- data.info.flags = SPA_PORT_FLAG_CAN_USE_BUFFERS;
+ data.info.flags = 0;
data.items[0] = SPA_DICT_ITEM_INIT(PW_KEY_FORMAT_DSP, "32 bit float mono audio");
data.dict = SPA_DICT_INIT_ARRAY(data.items);
data.info.props = &data.dict;
diff --git a/src/examples/local-v4l2.c b/src/examples/local-v4l2.c
index 4d52d4ac..1fd4161c 100644
--- a/src/examples/local-v4l2.c
+++ b/src/examples/local-v4l2.c
@@ -104,7 +104,7 @@ static int impl_add_listener(void *object,
info = SPA_PORT_INFO_INIT();
info.change_mask = SPA_PORT_CHANGE_MASK_FLAGS;
- info.flags = SPA_PORT_FLAG_CAN_USE_BUFFERS;
+ info.flags = 0;
spa_node_emit_port_info(&d->hooks, SPA_DIRECTION_INPUT, 0, &info);
@@ -243,7 +243,7 @@ static int impl_port_set_param(void *object,
}
static int impl_port_use_buffers(void *object, enum spa_direction direction, uint32_t port_id,
- struct spa_buffer **buffers, uint32_t n_buffers)
+ uint32_t flags, struct spa_buffer **buffers, uint32_t n_buffers)
{
struct data *d = object;
uint32_t i;