#201: Crashes out of the blue
-------------------------+--------------------------------------------------
Reporter: paulvt | Owner: admin
Type: Bugs | Status: new
Priority: 1 | Milestone:
Component: Liquidsoap | Version: 0.3.8+svn
Resolution: | Keywords:
Mac: 1 | Linux: 1
Netbsd: 1 | Other: 1
Freebsd: 1 |
-------------------------+--------------------------------------------------
Comment (by mrpingouin):
I don't have any FLAC file to test anything seriously, so here's a quick
workaround. Try first to play just a FLAC file, make sure that it crashes
-- it will when metaflac produces an output that is not of the expected
format, i.e. apparently something with at least one "=" on the line. Then
try again with the patch, it should work. But it inserts a crappy "foo"
metadata, possibly several times.
{{{
--- scripts/utils.liq (revision 6168)
+++ scripts/utils.liq (working copy)
@@ -386,7 +386,11 @@
ret = list.map(string.split(separator="="),ret)
# Yea, this is tuff programming !
def first_two(l)=
- (list.hd(l),list.nth(l,1))
+ if list.length(l)>=2 then
+ (list.hd(l),list.nth(l,1))
+ else
+ ("foo","bar")
+ end
end
list.map(first_two,ret)
end
}}}
--
Ticket URL: <http://savonet.rastageeks.org/ticket/201#comment:3>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac