Le mercredi 24 mars 2010 16:25:09, Octavio Rossell a écrit :
> Hi all.
Hi !
> I have recently know about you. Very good tool, the LiquidSoap.
Thanks !
> So it worked to put a fixed metadata, but listeners receive continuous
> "change metadata", receiving the same one configured by us, one and
> another time, resulting in the disconnect errors listener have in their
> default configs.
Hmm... The problem comes from the fact that liquidsoap has a notion of track
which is preserved even if you remove the metadata. Then, rewrite_metadata
will add a new metadata per new track by default (parameter: insert_missing)
What you need to do is to remove all track markers before you rewrite the
metadata. The following code can achieve this:
-----
s = add([blank(),s])
s = rewrite_metadata([("title","test")], s)
-----
The first line will add a blank source to s. The behaviour of the add operator
is to relay tracks and metadata from the first source only. Hence, the
resulting source will have only one track and no metadata.
Then the second line add the metadata on top of that.
There might be an operator for removing track markers, but I can find it now..
Eventually, you should put this piece of code just before the output. In most
cases, track markers are useful, for instance when using a track_sensitive
fallback, so you better remove them at the last moment..
Also, this is make the source infallible (but it will stream blank if the real
source is not available), so when using this you can remove all mksafe() from
your code..
Hope this helps,
Romain
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users