change mpg123 input plugin to not handle streaming FLAC?

"Steven A. Richman" <[email protected]>
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <1043026540.9048.32.camel@jose>
Hi,

I have written some code for the flac input plugin to give it http
streaming support. Unforunately, the mpeg input plugin that comes with
xmms handles all http streams that don't end in a .ogg or real audio
extension, so the URLs of flac http streams never make it the flac
plugin.

So, would it be possible to add ".fla" and ".flac" to the list of http
stream extensions that mpg123 ignores? Making the following change to
Input/mpg123/mpg123.c would do the trick:

--- mpg123.c    2003-01-19 20:29:29.000000000 -0500
+++ mpg123.c.new        2003-01-19 20:31:38.000000000 -0500
@@ -394,6 +394,9 @@
                {
                        if (!strncasecmp(ext, ".ogg", 4)) 
                                return FALSE;
+                       if (!strncasecmp(ext, ".fla", 4) ||
+                           !strncasecmp(ext, ".flac", 5))
+                               return FALSE;
                        if (!strncasecmp(ext, ".rm", 3) || 
                            !strncasecmp(ext, ".ra", 3)  ||
                            !strncasecmp(ext, ".rpm", 4)  ||

Thanks,
steven.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.