Hi Leonel!
Le 31 octobre 2011 06:46, Leonel Rocha <[email protected]> a écrit :
> Hi!
> Sorry, I guess I misunterstood it.
> I tried to use source.shutdown(out) in the arguments on_stop of the output
> and in on_done of playlist.once() and got erros on both, always like:
> At line 26, char 27:
> this value has type
> (_)->_
> but it should be a subtype of
> ()->unit
>
Could you try to change, in the original script you posted, this:
# Now we write a function to create
# a playlist source and output it.
def create_playlist(uri) =
# The playlist source
s = mean(playlist.once(uri))
# The output
output = out(s)
# We register both source and output
# in the list of sources
dyn_sources :=
list.append( [(uri,s),(uri,output)],
!dyn_sources )
"Done!"
end
By that:
# Now we write a function to create
# a playlist source and output it.
def create_playlist(uri) =
# The playlist source
pl = playlist.once(uri)
s = mean(pl)
# The output
output = out(s)
# We register both source and output
# in the list of sources
dyn_sources :=
list.append( [(uri,s),(uri,output),(uri,pl)],
!dyn_sources )
"Done!"
end
I know that David says that you only need to call source.shutdown on
the top-level output but I'd like to check this..
Otherwise, if the above does not work, then I'd like to know what
version of liquidsoap you are using. I think we fixed a problem with
server commands not being unregistered at source shutdown quite late
in the 1.0.0 release cycle.
Thanks,
Romain
------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World™ now supports Android™ Apps
for the BlackBerry® PlayBook™. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users