mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-11-03 04:17:17 -05:00
minor display changes for xsl pages
svn path=/icecast/branches/kh/icecast/; revision=7661
This commit is contained in:
parent
7d6b4f02bc
commit
6bbb263b7d
@ -209,6 +209,12 @@ xmlDocPtr admin_build_sourcelist(char *current_source)
|
||||
node = avl_get_first(global.source_tree);
|
||||
while(node) {
|
||||
source = (source_t *)node->key;
|
||||
if (current_source && strcmp (current_source, source->mount) == 0)
|
||||
{
|
||||
node = avl_get_next(node);
|
||||
continue;
|
||||
}
|
||||
|
||||
thread_mutex_lock (&source->lock);
|
||||
if (source->running || source->on_demand)
|
||||
{
|
||||
@ -336,7 +342,7 @@ void admin_handle_request(client_t *client, char *uri)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (source->running == 0)
|
||||
if (source->running == 0 && source->on_demand == 0)
|
||||
{
|
||||
INFO2("Received admin command %s on unavailable mount \"%s\"",
|
||||
command_string, mount);
|
||||
|
@ -346,12 +346,12 @@ void source_move_clients (source_t *source, source_t *dest)
|
||||
long count = 0;
|
||||
thread_mutex_lock (&source->lock);
|
||||
|
||||
if (source->format == NULL)
|
||||
if (source->on_demand == 0 && source->format == NULL)
|
||||
{
|
||||
INFO1 ("source mount %s is not available", source->mount);
|
||||
break;
|
||||
}
|
||||
if (dest->format)
|
||||
if (source->format && dest->format)
|
||||
{
|
||||
if (source->format->type != dest->format->type)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user