From ddce387c5951874387ed956bd70c9333f786cd09 Mon Sep 17 00:00:00 2001 From: Samuel Mimram Date: Mon, 7 Feb 2022 17:13:44 +0100 Subject: [PATCH] Test that muxing preserves metadata. --- tests/streams/mux-meta.liq | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tests/streams/mux-meta.liq diff --git a/tests/streams/mux-meta.liq b/tests/streams/mux-meta.liq new file mode 100755 index 0000000000..68a513460c --- /dev/null +++ b/tests/streams/mux-meta.liq @@ -0,0 +1,14 @@ +#!../../src/liquidsoap ../../libs/stdlib.liq + +# Ensure that muxing video preserves metadata + +%include "test.liq" + +log.level.set(4) + +s = sine() +s = insert_metadata(s) +thread.run(delay=1., {s.insert_metadata([("a","b")])}) +s = mux_video(video=blank(), s) +s = source.on_metadata(s, fun(_) -> begin test.pass(); shutdown() end) +output.dummy(s)