#222: Switch seems to be broken
------------------------+---------------------------------------------------
Reporter: paulvt | Owner: admin
Type: Bugs | Status: new
Priority: 1 | Milestone:
Component: Liquidsoap | Version: 0.3.8+svn
Keywords: | Mac: 0
Linux: 1 | Netbsd: 0
Other: 0 | Freebsd: 0
------------------------+---------------------------------------------------
I have a simple switch statement in my script that seems to work
erratically since a recent SVN snapshot build. I haven't been able to
determine which due to the erratic behaviour, but it maybe due to [6266].
An excerpt of the script:
{{{
default = random(id="default", weights=[ 299, 1, 300 ], [ req, sets,
tracks ])
default = smart_crossfade(skip_blank(default))
chill = random(id="chill", weights=[ 299, 1, 300 ], [ req, sets_chill,
tracks_chill ]
)
chill = smart_crossfade(skip_blank(chill))
default_schedule = switch(id="default_schedule",
[({ 0h-10h }, chill),
({ true }, default) ])
}}}
On start, it seems to arbitrarily choose either "chill" or "default". For
example, I restarted yesterday, it ends op in "default", but at 1:24 last
night it switched to "chill" which it is still in while it's well after
12:00.
--
Ticket URL: <http://savonet.rastageeks.org/ticket/222>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac