From c613ae4b40342214eb2af75f26f5e52957adc13a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 16 Feb 2018 18:14:24 +0100 Subject: [PATCH] v4l2: unset format, then close v4l2 does not want to close unless the format is cleared --- spa/plugins/v4l2/v4l2-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/v4l2/v4l2-source.c b/spa/plugins/v4l2/v4l2-source.c index f8c8a27d3..201ce9335 100644 --- a/spa/plugins/v4l2/v4l2-source.c +++ b/spa/plugins/v4l2/v4l2-source.c @@ -588,8 +588,8 @@ static int port_set_format(struct spa_node *node, if (format == NULL) { spa_v4l2_stream_off(this); spa_v4l2_clear_buffers(this); - spa_v4l2_close(this); port->have_format = false; + spa_v4l2_close(this); return 0; } else { spa_pod_object_parse(format,