diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-07-06 20:49:52 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-07-06 20:49:52 +0000 |
commit | 292fec2a0bd1f221a46ad69c5100995d04c01057 (patch) | |
tree | 658db299e0e03b2454ff840730569d79539e67c4 /ext/shout2 | |
parent | a8183e9a3fa87cf4247c7df16207f440ea4069c0 (diff) |
New mimetypes gone into effect today - this commit changes all old mimetypes over to the new mimetypes spec as descri...
Original commit message from CVS:
New mimetypes gone into effect today - this commit changes all old mimetypes over to the new mimetypes spec as described in the previous commit's document. Note: some plugins will break, some pipelines will break, expect HEAD to be broken or at least not 100% working for a few days, but don't forget to report bugs
Diffstat (limited to 'ext/shout2')
-rw-r--r-- | ext/shout2/gstshout2.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c index 8e4bcce7..b7d01c74 100644 --- a/ext/shout2/gstshout2.c +++ b/ext/shout2/gstshout2.c @@ -71,12 +71,15 @@ sink_template_factory (void) GST_PAD_ALWAYS, gst_caps_new ( "shout2send_sink", - "application/x-ogg", + "application/ogg", NULL), gst_caps_new ( "shout2send_sink", - "audio/x-mp3", - NULL), + "audio/mpeg", + gst_props_new ( + "layer", GST_PROPS_INT_RANGE (1, 3), + NULL + )), NULL); } @@ -362,13 +365,13 @@ gst_shout2send_connect (GstPad *pad, GstCaps *caps) { - if (!strcmp(gst_caps_get_mime (caps), "audio/x-mp3")) + if (!strcmp(gst_caps_get_mime (caps), "audio/mpeg")) { audio_format = SHOUT_FORMAT_MP3; return GST_PAD_LINK_OK; } - if (!strcmp(gst_caps_get_mime (caps), "application/x-ogg")) + if (!strcmp(gst_caps_get_mime (caps), "application/ogg")) { audio_format = SHOUT_FORMAT_VORBIS; return GST_PAD_LINK_OK; |