#250: Too much metadatas received with input.http
------------------------+---------------------------------------------------
Reporter: Azrael | Owner: admin
Type: Bugs | Status: new
Priority: 1 | Milestone: 0.9.0
Component: Liquidsoap | Version: 0.9.0+svn
Keywords: | Mac: 1
Linux: 1 | Netbsd: 1
Other: 1 | Freebsd: 1
------------------------+---------------------------------------------------
Hello,
Using input.http and Shoutcast, input.http receives metadata all the time
(up to 30 times per second). When one tries to use the on_metadata event,
the event is thus called numerous time per second in that case.
For example :
If Liquidsoap uses input.http to receive a stream from a Shoutcast Server
(sc_serv), it will receive metadata all the time, and pass them all to
on_metadata.
As a consequence, let's say you have : radio = on_metadata(metas,radio)
and def metas(m)
system("echo m['title'] >> blah.txt")
end
Your blah.txt will grow with hundreds of lines in just a few seconds.
Eventually, Liquidsoap may even crash after a few minutes (perhaps because
of the load of doing the metas function so many times per second.
I suggest forcing liquidsoap to pass metadatas to on_metadata() only when
the new metadata received is different from the former one.
--
Ticket URL: <http://savonet.rastageeks.org/ticket/250>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac