From 8e0d5d66789e8b7f7c5ba6b440d20de0f0299ad0 Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Thu, 30 Mar 2017 14:44:09 +0200 Subject: [PATCH] Add STDIN streaming configuration example --- examples/Makefile.am | 1 + examples/ezstream-stdin.xml | 25 +++++++++++++++++++++++++ tests/check_cfg_xmlfile.c | 3 +++ 3 files changed, 29 insertions(+) create mode 100644 examples/ezstream-stdin.xml diff --git a/examples/Makefile.am b/examples/Makefile.am index 726f28b..98ef554 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -5,6 +5,7 @@ dist_examples_DATA = \ ezstream-file_template.xml \ ezstream-full.xml \ ezstream-minimal.xml \ + ezstream-stdin.xml \ ezstream-video.xml \ metadata.txt \ artist.txt \ diff --git a/examples/ezstream-stdin.xml b/examples/ezstream-stdin.xml new file mode 100644 index 0000000..db7ab24 --- /dev/null +++ b/examples/ezstream-stdin.xml @@ -0,0 +1,25 @@ + + + + + + + + 127.0.0.1 + hackme + + + + /stream.ogg + Vorbis + + + + stdin + + + diff --git a/tests/check_cfg_xmlfile.c b/tests/check_cfg_xmlfile.c index bb88fdc..a410f6a 100644 --- a/tests/check_cfg_xmlfile.c +++ b/tests/check_cfg_xmlfile.c @@ -18,6 +18,9 @@ START_TEST(test_reload) ck_assert_int_eq(cfg_set_program_config_file(EXAMPLESDIR "/ezstream-minimal.xml", NULL), 0); ck_assert_int_eq(cfg_file_reload(), 0); + ck_assert_int_eq(cfg_set_program_config_file(EXAMPLESDIR "/ezstream-stdin.xml", + NULL), 0); + ck_assert_int_eq(cfg_file_reload(), 0); ck_assert_int_eq(cfg_set_program_config_file(EXAMPLESDIR "/ezstream-video.xml", NULL), 0); ck_assert_int_eq(cfg_file_reload(), 0);