From f160c86f6feab47c8fe0ddb78739f7665d1ed74c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 21 Aug 2024 16:11:30 +0200 Subject: [PATCH] doc: expand on the syncobj negotiation for sync_timeline PipeWire doesn't impose how the syncobj fds are negotiated but provides a way to add them to the buffer data when negotiating the Buffers. --- spa/include/spa/buffer/meta.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spa/include/spa/buffer/meta.h b/spa/include/spa/buffer/meta.h index 844a8a256..2f77d8dd5 100644 --- a/spa/include/spa/buffer/meta.h +++ b/spa/include/spa/buffer/meta.h @@ -168,9 +168,10 @@ struct spa_meta_videotransform { * Metadata to describe the time on the timeline when the buffer * can be acquired and when it can be reused. * - * This metadata will usually also require negotiation of 2 extra - * buffer datas of type SPA_DATA_SyncObj with 2 fds for the acquire - * and release timelines respectively. + * This metadata will require negotiation of 2 extra fds for the acquire + * and release timelines respectively. One way to achieve this is to place + * this metadata as SPA_PARAM_BUFFERS_metaType when negotiating a buffer + * layout with 2 extra fds. */ struct spa_meta_sync_timeline { uint32_t flags;