[Icecast-dev] [libshout] Add mime/content-type parameter

Romain Beauxis
Sat, 20 Sep 2008 11:59:48 -0000

Hi all !

While trying to read ogg data from various audio players, it sometimes appear
that the player needs a different mime type than libshout's
default, "application/ogg". For instance, I already saw:
  "application/x-ogg";"audio/x-ogg"

Currently, libshout has a built-in Content-Type parameter, that is
set according to the given format integer.

I would like to propose a backward compatible patch that adds a mime
parameter to shout_t and the corresponding set/get functions.

This parameter is set to default values when calling set_format, so the
behaviour is 100% backward compatible, only it adds more flexibility to
libshout.

What do you think ?


Romain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shout_mime_param.patch
Type: text/x-diff
Size: 3586 bytes
Desc: not available