I have a script that runs fine on 0.9.x but it looks like some 1.0.0 changes
have introduced some differences in the fallback function. I've been trying
to understand the new syntax but am having some trouble. Any help
appreciated!
Dave
Here is the error:
At line 12, char 62:
this value has type
source(_) (infered at line 6, char 20-27)
but it should be a subtype of (the type of the value at line 12, char
34-51)
active_source(_)
Script is:
#/usr/bin/liquidsoap
# Icecast feed 1
url1 = "http://hostname:port/mount1"
input1 = mksafe(input.http(id="mount1",url1))
input1 = skip_blank(input1)
# Icecast feed 2
url2 = "http://hostname:port/mount2"
input2 = mksafe(input.http(id="mount2",url2))
s = fallback(track_sensitive=false,
[ strip_blank(length=2.,input2) , input1 ])
output.icecast(%mp3(samplerate=11025, bitrate=16,
stereo=false),host="hostname",port=8000,password="xxxxx",
mount="combined_mount", icy_metadata="true", url="http://xxxxx",
name="Combined feed", description="New feed", restart=true, s)
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users