Problem Adding URL (streamoftheworld.com)
I want to listen to some online station like this: http://provisioning.streamtheworld.com/pls/cfnyfm.pls
I can do it using VLC, Mplayer, etc, but I can't play it using Audacious (I am using the latest version, from the webupd8 repository).
Is this a missing feature? Should I install some library to do it? Thanks for your attention
Our PLS parser wasn't written to be able to read files with an unknown file size (e.g. if the website didn't provide a "content-length" field in the HTTP header). It should work now with this change:
Thanks, although I have a question (I haven't tested the change you made in github, because I usually prefer to the next official version):
When I try to listed to the above station using VLC or a mplayer based program (like GNOME Mplayer), I have noticed this: VLC loads the pls file inmediately, but mplayer takes a while loading something before I can listen the station (it might several seconds, sometimes a minute, and less time if I play this from a terminal); in other words, the way they manage to reproduce .pls files from online stations is quite different. I tried with winamp in Windows and also loads inmediately.
After the change you made, the behavior is going to be like VLC or like Mplayer?
I think it was pretty quick to start playing when I tried it a couple weeks ago (I can't test at the moment).
Playback starts immediately here.
Wouldn't that introduce a possible vulnerability (buffer overflow or so) if the length of the downloaded PLS file is not checked?
Joop, as an experienced programmer who's not involved with Audacious, the above code linked to by John Lindgren has no chance of buffer overflow.
What the rest of the code does with the data once it's read, I cannot attest to.