[ 
http://dev.sourcefabric.org/browse/LS-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21046#action_21046
 ] 

David Baelde commented on LS-610:
---------------------------------

Second thought: how is reading from a program different from reading from a 
program? If there's no deep difference then we should use the same design for 
decoding. Currently, most of our decoding operators rely on mime types, either 
given by libmagic or obtained by HTTP, or passed explicitly as a parameter as 
in input.udp(). So, why not a mime parameter for input.external()? I'd expect 
that a big fat warning (with explanations, maybe) is already in place for when 
the mime type isn't compatible with the type of the source.

> input.external() is stupidly picky about channels
> -------------------------------------------------
>
>                 Key: LS-610
>                 URL: http://dev.sourcefabric.org/browse/LS-610
>             Project: Liquidsoap
>          Issue Type: Bug
>            Reporter: David Baelde
>
> Not quite a bug but a bad design: input.external() expects you to fill in the 
> channel information, and requires that it is the same as the type.
> Either we let the user pick the number of channels and the type (difficult in 
> this situation, but this explicit solution has some value), or allow to 
> de-correlate the two (introduces an implicit conversion, not very 
> controllable), or read the number of channels from the type (seems good 
> enough, simple to implement and not more implicit/misleading than what we do 
> with other operators).
> Similar operators should be reviewed when fixing this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Savonet-devl mailing list
Savonet-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à