Moritz Grimm
ffa2a01c96
Add missing change to xreallocarray() in previous
2015-04-23 00:02:51 +02:00
Moritz Grimm
ab268e9616
Strip xalloc to something much simpler
...
The libxalloc was reincarnated long ago in a separate utility library.
It did a good job help make ezstream have robust memory management years ago,
but now it's time to move on and get back to basics.
The replacement introduces reallocarray(), which is an overflow-checking
alternative to both malloc (NULL ptr) and realloc().
2015-04-22 23:38:19 +02:00
Moritz Grimm
c6747ef998
Prefer SIGSEGV over SIGABRT in case of explicit internal API abuse
...
While here, declare some module-internal functions static.
2015-04-22 19:50:00 +02:00
Moritz Grimm
41058dac79
Use log API for all regular output messages
...
This makes ezstream log via syslog and stderr. The "real-time status
line" remains unaffected.
While here, make the output more concise and consistent.
2015-04-22 19:29:20 +02:00
Moritz Grimm
19af508eae
Add a simple logging API
...
Uses syslog
2015-04-16 19:30:41 +02:00
Moritz Grimm
85c90a3c80
Add support for compiler attributes
2015-04-16 19:30:36 +02:00
Moritz Grimm
9bc65bf717
Factor out command line parsing
2015-04-16 19:30:08 +02:00
Moritz Grimm
4062cc190a
Streamline -s option by always requiring an option argument
2015-04-16 19:25:40 +02:00
Moritz Grimm
e3b3ed4cf9
Remove active support for Windows and certain legacy UNIX systems
2015-04-15 23:16:12 +02:00
Moritz Grimm
dd1ab911c9
Two more indent fixes.
2015-04-15 13:20:32 +02:00
Moritz Grimm
26dd4d2a8e
Indent closer to my favorite style(9)
...
Why yes, it /is/ KNF!
2015-04-13 23:28:21 +02:00
Moritz Grimm
400ef3c9cc
Remove comments mentioning the FSF postal address
...
I do not plan to ever keep that up to date in case they move again.
If you need a copy of the GPL, use the Internet or read COPYING.
2015-03-24 22:42:06 +01:00
Moritz Grimm
c243ed5971
Fix cast
2015-02-27 23:02:55 +01:00
Moritz Grimm
739a08b5b9
Untangle compatibility code
...
* update to latest strlc*(3) and strtonum(3) functions
* isolate local_basename()
2015-02-27 22:42:51 +01:00
Moritz Grimm
00017d2165
Unconditionally include compat
2015-02-27 15:17:24 +01:00
Moritz Grimm
291ed50044
Drop RCS ID tag
2015-02-23 13:51:55 +01:00
Moritz Grimm
8819f0f9f9
Require automake 1.10 everywhere
2015-02-23 13:51:47 +01:00
Moritz Grimm
a7f3ae476d
Always include time.h.
2015-01-17 23:50:11 +01:00
Moritz Grimm
7790164cc3
Consolidate INCLUDES into AM_CPPFLAGS
2015-01-17 23:34:32 +01:00
Moritz Grimm
dd4c241fef
Update copyright and/or author email
2015-01-17 22:34:34 +01:00
Moritz Grimm
6211bc8506
Fix a shell command injection vulnerability in metadata
...
This has been reported by Alexandre Rebert in February 2013(!).
The time to fix is terrible; luckily, the affected user base is likely to be
very small.
2015-01-07 22:49:09 +01:00
Moritz Grimm
29ae1b351b
Remove unneccessary assignment
2015-01-04 23:43:25 +01:00
Moritz Grimm
10f739f6f3
Add option -m to disable active metadata updates
...
Requested by cmodyssey via ticket #1620 :
"Allow ezstream to stop it sending metadata information by configuration"
2015-01-03 23:19:28 +01:00
Moritz Grimm
f04c395106
Do not close stdin on EOS
...
From gquintard via ticket #2045 :
"Not sending data to stdin can throw ezstream into an infinite loop"
2015-01-03 00:08:12 +01:00
moritz
549af56184
Add new <metadata_refreshinterval/> feature
...
Add new <metadata_refreshinterval/> feature and configuration option. Based on
a patch by Matthew Adams (thanks!), with minor changes and documentation
additions by me.
(cherry picked from commit 41765452114f0c82eaa53e1429606f3d40ae5c56)
2015-01-01 23:41:31 +01:00
moritz
000320afa5
Teach ezstream a different mode of operation, as a one-shot line shuffling tool.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@16537 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-08-30 21:55:24 +00:00
moritz
c59c0c9847
Support reading playlists from standard input.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@16536 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-08-30 21:46:15 +00:00
moritz
c7f262ddf8
Move the verbose error check where it belongs.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@16534 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-08-30 19:41:59 +00:00
moritz
5121dd35de
Do not quote $EZSTREAM, which breaks paths with whitespace but allows to
...
smuggle in default command line arguments.
git-svn-id: https://svn.xiph.org/trunk/ezstream@16531 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-08-30 18:23:12 +00:00
moritz
d3151cd65a
Add new wrapper/convenience script ezstream-file.sh -- generates ezstreams on-
...
the-fly.
git-svn-id: https://svn.xiph.org/trunk/ezstream@16529 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-08-30 12:49:06 +00:00
moritz
f8c39fa992
Remove pointless and (at this point) irritating warning message.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@16528 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-08-29 09:37:39 +00:00
moritz
995c5d2b77
The original reason to abort ezstream when running into problems opening a media
...
file was to prevent a very verbose infinite loop (e.g. when accidentially
playing an outdated playlist.) Bring that back by aborting after 100 subsequent
errors.
git-svn-id: https://svn.xiph.org/trunk/ezstream@16527 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-08-29 09:36:18 +00:00
moritz
322b88412f
... also fix ezstream in this regard: No need to complain when receiving such
...
an empty line, and not receiving any output should not be a fatal error.
Consider the latter to be "end-of-playlist", too.
git-svn-id: https://svn.xiph.org/trunk/ezstream@16526 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-08-29 09:14:12 +00:00
moritz
cae7e0029a
#1585 : Continue when openResource() fails.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@16497 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-08-22 10:03:45 +00:00
moritz
c6a686560e
Akos Veres suggested that ezstream should be able to set the login username,
...
and I concur.
git-svn-id: https://svn.xiph.org/trunk/ezstream@16319 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-07-22 20:19:38 +00:00
moritz
1951ddd827
Actually, we agreed on GPLv2 only ...
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@16150 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-06-21 14:35:27 +00:00
moritz
5a0bfa143b
Finish up the modifications to the Windows build. In case anything remains to be done, it'll be nits.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@15798 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-18 20:24:35 +00:00
moritz
9375b750e8
Mh... compiling before commit would've helped.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@15797 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-18 20:15:24 +00:00
moritz
363318fa41
Make metadata_get_name() return UTF8, which is what the rest of ezstream now
...
expects. From Roman Donchenko.
git-svn-id: https://svn.xiph.org/trunk/ezstream@15796 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-18 19:57:15 +00:00
moritz
7e8656313d
Repair some fallout from previous commits, and work more on Win32 builds.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@15795 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-18 19:55:20 +00:00
moritz
c0b09af703
Work towards cleaner portability goo, and remove some ununsed code while there.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@15794 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-18 09:10:28 +00:00
moritz
842d72adc0
Bump copyright year where applicable.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@15789 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-17 18:29:15 +00:00
moritz
dc547dcbbf
Native EOL-style, and Id tags in a couple of places.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@15788 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-17 18:20:58 +00:00
moritz
df2b05bb61
#1398 : Make optional components optional. (For real.)
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@15782 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-16 22:59:28 +00:00
moritz
90d4a1a6a3
It's stupid to put my own copyright on a file where I didn't really write the
...
code. Luckily, I had the proper copyright statement in there already, so moving
it fixes things.
git-svn-id: https://svn.xiph.org/trunk/ezstream@15781 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-16 20:39:22 +00:00
moritz
b11e6acb36
Squelch another bunch of warnings after checking that what's happening is what's
...
wanted.
git-svn-id: https://svn.xiph.org/trunk/ezstream@15780 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-16 20:22:56 +00:00
moritz
f193a9d5ad
Use a wrapper around getopt() for portability. This uses the system getopt()
...
whenever possible, and otherwise uses a stripped down, single options only,
BSD getopt() (which is smaller and doesn't come with ifdef-stuff-in-features.h.)
git-svn-id: https://svn.xiph.org/trunk/ezstream@15779 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-16 20:12:29 +00:00
moritz
2e33855113
Guarantee that iconvert() never returns NULL. This is a clumsy, but effective
...
way to prevent NULL dereferences after the recent character conversion changes
in other parts of ezstream.
git-svn-id: https://svn.xiph.org/trunk/ezstream@15778 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-16 19:51:26 +00:00
moritz
9acbffc2dd
Overhaul the ezstream build system, using my own library of autoconf macros.
...
There are a few benefits to this, but the main reason is consistency and me
completely understanding what's going on. Regressions are not expected, but
wouldn't surprise either ... this needs lots of testing.
git-svn-id: https://svn.xiph.org/trunk/ezstream@15776 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-16 00:08:31 +00:00
moritz
4eab64df5d
Assorted type fixes, unshadowing of variables, etc.
...
git-svn-id: https://svn.xiph.org/trunk/ezstream@15775 0101bb08-14d6-0310-b084-bc0e0c8e3800
2009-03-15 17:18:56 +00:00