#382: function to get a source by it's id
------------------------+---------------------------------------------------
 Reporter:  mccurly     |       Owner:  admin
     Type:  Feature     |      Status:  new  
 Priority:  1           |   Milestone:       
Component:  Liquidsoap  |     Version:       
 Keywords:              |         Mac:  1    
    Linux:  1           |      Netbsd:  1    
    Other:  1           |     Freebsd:  1    
------------------------+---------------------------------------------------

Comment(by mrpingouin):

 Hi mccurly,

 Thank you for the example. It seems to me that the cookbook solution shows
 a general way of addressing this kind of problem, using references and
 server commands. However, I agree that it disappointing to have to use
 such technical hacks for such a simple task.

 Your example has actually forced me to think a little more seriously to
 something I had in mind: see #387. I'm not sure when we can expect that
 new feature. Unfortunately, I don't think I'll give you get_source_by_id
 in the meantime: if the ID is not found, it's not very satisfying to
 return an arbitrary source, but it's dangerous to raise an exception. This
 should be another ticket: support exceptions (failure) in Lang. Currently,
 any such failure could crash the streaming (the error would kill not only
 the even handler on_connect but also the source that called it; we need to
 systematically install protections).

-- 
Ticket URL: <http://savonet.rastageeks.org/ticket/382#comment:6>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac

Reply via email to