Moritz Grimm
44f7e19ca7
Fix "HTTPS" protocol support. Add optional support for ICY and RoarAudio
2020-01-22 22:55:59 +01:00
Moritz Grimm
83d1d17be1
Remove half-baked support for "passthrough encoders"
...
The correct way is to just not configure an encoder for a stream, which
is what the documentation already states. Encoder sections now require
a program name to be set or the configuration will not load.
Fixes a segfault in ezstream.c, as reported by Tom McCallum via Github.
2020-01-15 23:04:40 +01:00
Moritz Grimm
6f8daee288
Fix whitespace
2018-07-17 13:41:48 +02:00
Moritz Grimm
dccf0f0148
Consistent function names
2018-07-17 13:41:48 +02:00
Moritz Grimm
24e69c2e52
Bump copyright
2018-07-17 10:49:13 +02:00
Moritz Grimm
9f2cd71aed
Define "ezstream" only once
2018-07-17 10:31:25 +02:00
Moritz Grimm
814434bfb5
Remove unneeded #define
2018-07-16 16:24:44 +02:00
Moritz Grimm
8c4fb52bd4
Bump copyright
2018-02-02 16:42:48 +01:00
Moritz Grimm
7c509a575a
Fix up freeConfig()
2018-01-23 13:17:00 +01:00
Moritz Grimm
ca76365c61
Add missing include
2018-01-23 10:42:45 +00:00
Moritz Grimm
75a9a410aa
Style improvements
2018-01-23 11:10:04 +01:00
Moritz Grimm
20c7bd64b1
Properly initialize ez
2018-01-23 11:09:45 +01:00
Moritz Grimm
d81a3e23bb
Add configuration migration tool
2018-01-23 01:51:48 +01:00
Moritz Grimm
5287bbdd4b
Support pass-through encoder (again)
2018-01-23 00:44:04 +01:00
Moritz Grimm
113d8a6b88
Make set_progname() reusable
2018-01-19 13:03:32 +01:00
Moritz Grimm
4b4fee9ed0
Make xalloc, util, and log reusable as libcommon
2018-01-19 12:40:01 +01:00
Moritz Grimm
86bd51b39a
Decouple cfg from log
2018-01-19 12:32:30 +01:00
Moritz Grimm
d0cf1d8bbd
Increase getTimeString static buffer
2018-01-18 11:42:37 +01:00
Moritz Grimm
0b260b3c08
Make media inputs ("intakes") a list of things, too
2017-11-23 18:34:57 +01:00
Moritz Grimm
184e2dd8c3
Fix include-once define
2017-11-23 18:26:31 +01:00
Moritz Grimm
6566705361
Fix includes
2017-11-18 02:12:12 +01:00
Moritz Grimm
ed9e84f387
Change config format to (eventually) support concurrent streams to many servers
...
Everything ties together in stream configurations, of which there can be many
now.
For the time being, every stream configuration but the "default" is ignored.
Every stream/server/encoder/decoder configuration now has the name "default"
by default, so that configuring names is only needed to resolve ambiguities.
Decoder configurations are now also constrained in this manner for consistency,
meaning they are no longer uniquely identified by a number of file extensions
but also a name.
2017-11-18 01:54:14 +01:00
Moritz Grimm
f82cf2b458
Add ezstream-file support for -p pidfile
2017-11-18 01:20:55 +01:00
Moritz Grimm
0e414f6142
Remove unused variable and change out_len to unsigned
2017-09-28 12:40:52 +02:00
Moritz Grimm
6466b6ea19
Prefer crashing over no coredump
2017-09-25 19:47:24 +02:00
Moritz Grimm
b19b746e5f
Revert introduction of !0 pattern for "true"
2017-09-25 18:19:07 +02:00
Moritz Grimm
ddc30688e6
Remove unused function
2017-09-25 17:47:12 +02:00
Moritz Grimm
cb997e549c
Fix multiple issues in util_shellquote
2017-09-25 17:09:38 +02:00
Moritz Grimm
1d0b9d4801
Simplify util_strrcmp to return a strictly boolean value
2017-09-25 17:07:40 +02:00
Moritz Grimm
f5f130e036
Do not block when trying to lock a PID file; fail immediately
2017-09-25 17:06:38 +02:00
Moritz Grimm
8cc45a3a3d
Do not assign save_errno for no reason
2017-09-25 17:05:44 +02:00
Moritz Grimm
aaa32bf812
Retire rand() in favor of the upcoming getrandom() on Linux
...
Only the non-getrandom() code paths have been tested at this point.
2017-09-20 18:12:52 +02:00
Moritz Grimm
2cdda45c16
Unconditionally close allocated stderr FDs
2017-09-20 14:42:19 +02:00
Moritz Grimm
ae85c26cae
Fix weird program logic by removing getMetadata()
2017-09-20 13:23:32 +02:00
Moritz Grimm
d40576cd80
Remove superfluous continue; (part 2)
2017-09-20 12:58:09 +02:00
Moritz Grimm
85abb3958c
Revert bogus change that introduced a memory leak
2017-09-20 12:55:16 +02:00
Moritz Grimm
6616831590
Switch to a new (unit-tested) metadata handling API
2017-09-20 12:40:33 +02:00
Moritz Grimm
399e66df2b
Remove superfluous continue; (CID 171999 et al)
2017-09-20 11:32:34 +02:00
Moritz Grimm
89b4260c83
Ensure that dup() succeeds (CID 172001)
2017-09-20 11:26:35 +02:00
Moritz Grimm
0fe7a81b8c
Reorder defines for consistency
2017-09-19 16:06:09 +02:00
Moritz Grimm
fef9b4625e
Fix memory leak (CID 171996)
2017-09-15 20:21:45 +02:00
Moritz Grimm
8ea0197235
Fix memory leak (CID 172413)
2017-09-15 20:13:05 +02:00
Moritz Grimm
77f794a41e
Rework quoting around metadata
...
* Do not shell-quote strings in the metadata token expansion function
* This fixes https://github.com/xiph/ezstream/issues/6
* Expand all tokens at the same time in a way that ensures metadata
is not additional input to expansion
* Simplify several functions and remove unused functionality
2017-09-15 19:30:52 +02:00
Moritz Grimm
c21d47b8a9
Squelch conversion warnings around tolower()
2017-09-15 19:24:40 +02:00
Moritz Grimm
7729fa9773
Make configuration handling around streaming from stdin more robust
2017-09-15 19:23:16 +02:00
Moritz Grimm
59099c6ddf
Update util function naming scheme
2017-09-13 23:35:30 +02:00
Moritz Grimm
6d9ab1d581
Reorder code to match header
2017-07-10 11:44:20 +02:00
Moritz Grimm
43e26549f9
Add support for writing PID files
2017-07-10 11:39:00 +02:00
Moritz Grimm
e3aefe825e
Assume POSIX locale support
2017-07-07 18:50:24 +02:00
Moritz Grimm
75b6962a33
Variable scope reduction
2017-07-07 16:45:10 +02:00