From 783bbe6c64e7ffb262b45ed6c4ba77bb9cdfc2e3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 30 May 2017 20:01:37 +0200 Subject: [PATCH] Small cleanups --- spa/include/spa/node.h | 2 +- spa/tests/test-props.c | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/spa/include/spa/node.h b/spa/include/spa/node.h index 3668d4a8e..91896df63 100644 --- a/spa/include/spa/node.h +++ b/spa/include/spa/node.h @@ -550,7 +550,7 @@ struct spa_node { * - status is set to SPA_RESULT_OK when no new buffer is needed * * - status is set to SPA_RESULT_NEED_BUFFER when a new buffer is needed - * on the pad. + * on the port. * * - status is set to an error code when the buffer_id was invalid or any * processing error happened on the port. diff --git a/spa/tests/test-props.c b/spa/tests/test-props.c index 010b74f57..4f6a0a257 100644 --- a/spa/tests/test-props.c +++ b/spa/tests/test-props.c @@ -87,21 +87,20 @@ static void do_static_struct(struct spa_type_map *map) struct spa_format fmt; struct { - struct spa_pod_prop prop_format; SPA_ALIGNED(8) + struct spa_pod_prop prop_format SPA_ALIGNED(8); struct { uint32_t def_format; uint32_t enum_format[2]; } format_vals; - uint32_t pad; - struct spa_pod_prop prop_size; SPA_ALIGNED(8) + struct spa_pod_prop prop_size SPA_ALIGNED(8); struct { struct spa_rectangle def_size; struct spa_rectangle min_size; struct spa_rectangle max_size; } size_vals; - struct spa_pod_prop prop_framerate; SPA_ALIGNED(8) + struct spa_pod_prop prop_framerate SPA_ALIGNED(8); struct { struct spa_fraction def_framerate; struct spa_fraction min_framerate; @@ -120,7 +119,7 @@ static void do_static_struct(struct spa_type_map *map) { type.video_format.I420, { type.video_format.I420, type.video_format.YUY2 } - }, 0, + }, SPA_POD_PROP_INIT(sizeof(test_format.props.size_vals) + sizeof(struct spa_pod_prop_body), type.format_video.size,