From 7d51c20fb830f8ed3baecf342af8e47d02eb545f Mon Sep 17 00:00:00 2001 From: moritz Date: Wed, 28 Feb 2007 21:26:16 +0000 Subject: [PATCH] Add new playlist scripting feature (works similar to Ices 2.x.) git-svn-id: https://svn.xiph.org/trunk/ezstream@12591 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- NEWS | 5 + conf/ezstream_reencoding_example_mp3.xml | 10 +- conf/ezstream_reencoding_example_vorbis.xml | 5 + doc/ezstream.1.in | 35 +++-- src/configfile.c | 19 ++- src/configfile.h | 1 + src/ezstream.c | 79 ++++++---- src/playlist.c | 165 ++++++++++++++++++-- src/playlist.h | 12 ++ 9 files changed, 266 insertions(+), 65 deletions(-) diff --git a/NEWS b/NEWS index 2e958ca..fecef10 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,9 @@ Changes in 0.3.0, (SVN trunk): * New features: - Playlist shuffling support, enabled via the new configuration option. + - Playlist scripting support: Indicate that the executable in + should be run each time to get a new media filename to stream, by setting + the new configuration option to 1. - Add feature to skip the currently streaming track, done by sending the SIGUSR1 signal to the ezstream process. - New command line option `-q': Suppress standard error output from external @@ -15,6 +18,8 @@ Changes in 0.3.0, (SVN trunk): on the command line. - Thorough configuration file checks with helpful error messages. - The @M@ metadata placeholder is now supported in . + - Playlists may now have the '.txt' filename extension in addition to + '.m3u'. * Fixes: - At least one stack and one heap overflow have been fixed. diff --git a/conf/ezstream_reencoding_example_mp3.xml b/conf/ezstream_reencoding_example_mp3.xml index f787ed9..8a1c9d9 100644 --- a/conf/ezstream_reencoding_example_mp3.xml +++ b/conf/ezstream_reencoding_example_mp3.xml @@ -1,5 +1,5 @@ MP3 - playlist.m3u + playlist.pl - 0 + 1 1 + + 0