From dad153ce28e044545b6032ee912da08bb0d4b1ba Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 16 Jan 2019 12:55:50 +0100 Subject: [PATCH] alsa: mark properties are optional --- spa/plugins/alsa/alsa-sink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spa/plugins/alsa/alsa-sink.c b/spa/plugins/alsa/alsa-sink.c index 390fc3024..bc017caea 100644 --- a/spa/plugins/alsa/alsa-sink.c +++ b/spa/plugins/alsa/alsa-sink.c @@ -196,9 +196,9 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag } spa_pod_parse_object(param, SPA_TYPE_OBJECT_Props, NULL, - SPA_PROP_device, SPA_POD_Stringn(p->device, sizeof(p->device)), - SPA_PROP_minLatency, SPA_POD_Int(&p->min_latency), - SPA_PROP_maxLatency, SPA_POD_Int(&p->max_latency)); + SPA_PROP_device, SPA_POD_OPT_Stringn(p->device, sizeof(p->device)), + SPA_PROP_minLatency, SPA_POD_OPT_Int(&p->min_latency), + SPA_PROP_maxLatency, SPA_POD_OPT_Int(&p->max_latency)); } else return -ENOENT;