diff options
Diffstat (limited to 'src/examples/export-sink.c')
-rw-r--r-- | src/examples/export-sink.c | 5 |
1 files changed, 3 insertions, 2 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); |