wireplumber/0001-restore-stream-do-not-crash-if-config_properties-is-nil.patch

26 lines
800 B
Diff
Raw Normal View History

From 5f96f69218273573e625475846269b3914cfcecf Mon Sep 17 00:00:00 2001
From: George Kiagiadakis <george.kiagiadakis@collabora.com>
Date: Wed, 9 Feb 2022 13:35:13 +0200
Subject: [PATCH] restore-stream: do not crash if config.properties is nil
Fixes #190
---
src/scripts/restore-stream.lua | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/scripts/restore-stream.lua b/src/scripts/restore-stream.lua
index 404eede5..0c17bdd7 100644
--- a/src/scripts/restore-stream.lua
+++ b/src/scripts/restore-stream.lua
@@ -10,6 +10,7 @@
-- Receive script arguments from config.lua
local config = ... or {}
+config.properties = config.properties or {}
config_restore_props = config.properties["restore-props"] or false
config_restore_target = config.properties["restore-target"] or false
--
GitLab