1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

When falling back from a full source to another source, ensure the other source

actually exists. 

svn path=/icecast/trunk/icecast/; revision=10972
This commit is contained in:
Michael Smith 2006-03-07 19:12:43 +00:00
parent c892e2217a
commit 82f1ebf52a

View File

@ -286,6 +286,12 @@ static int add_client_to_source (source_t *source, client_t *client)
if (loop && source->fallback_when_full && source->fallback_mount)
{
source_t *next = source_find_mount (source->fallback_mount);
if (!next) {
ERROR1("Fallback '%s' for full source '%s' not found",
source->mount, source->fallback_mount);
return -1;
}
INFO1 ("stream full trying %s", next->mount);
source = next;
loop--;