Replace audio/mp3 with audio/x-mp3 and audio/x-flac with application/x-flac
authorIain Holmes <iain@prettypeople.org>
Sun, 8 Dec 2002 17:20:41 +0000 (17:20 +0000)
committerIain Holmes <iain@prettypeople.org>
Sun, 8 Dec 2002 17:20:41 +0000 (17:20 +0000)
Original commit message from CVS:
Replace audio/mp3 with audio/x-mp3 and audio/x-flac with application/x-flac

ext/flac/gstflac.c
ext/shout2/gstshout2.c
gst/avi/gstavidemux.c
gst/avi/gstavimux.c

index 4d75caf..6614f86 100644 (file)
@@ -37,7 +37,7 @@ flac_caps_factory (void)
   return
    gst_caps_new (
        "flac_flac",
-       "audio/x-flac",
+       "application/x-flac",
        NULL);
 }
 
@@ -61,8 +61,8 @@ raw_caps_factory (void)
 }
 
 static GstTypeDefinition flacdefinition = {
-  "flac_audio/x-flac",
-  "audio/x-flac",
+  "flac_application/x-flac",
+  "application/x-flac",
   ".flac",
   flac_type_find,
 };
@@ -75,7 +75,7 @@ flac_type_find (GstBuffer *buf, gpointer private)
   if (head  != 0x664C6143)
     return NULL;
 
-  return gst_caps_new ("flac_type_find", "audio/x-flac", NULL);
+  return gst_caps_new ("flac_type_find", "application/x-flac", NULL);
 }
 
 
index 1a687e3..65b6e90 100644 (file)
@@ -69,7 +69,7 @@ sink_template_factory (void)
        NULL),
       gst_caps_new (
         "shout2send_sink",
-        "audio/mp3",
+        "audio/x-mp3",
        NULL),
       NULL);
   }
@@ -324,7 +324,7 @@ gst_shout2send_connect (GstPad *pad, GstCaps *caps)
 
 {
   
-  if (!strcmp(gst_caps_get_mime (caps), "audio/mp3"))
+  if (!strcmp(gst_caps_get_mime (caps), "audio/x-mp3"))
     {
       audio_format = SHOUT_FORMAT_MP3;
       return GST_PAD_CONNECT_OK;
index 0280b65..a44554b 100644 (file)
@@ -144,7 +144,7 @@ GST_PAD_TEMPLATE_FACTORY (src_audio_templ,
   ),
   GST_CAPS_NEW (
     "avidemux_src_audio",
-    "audio/mp3",
+    "audio/x-mp3",
       NULL
   ),
   GST_CAPS_NEW (
@@ -520,7 +520,7 @@ gst_avi_demux_strf_auds (GstAviDemux *avi_demux)
     case GST_RIFF_WAVE_FORMAT_MPEGL3:
     case GST_RIFF_WAVE_FORMAT_MPEGL12: /* mp3 */
       newcaps = gst_caps_new ("avidemux_audio_src",
-                              "audio/mp3",
+                              "audio/x-mp3",
                                 NULL);
       break;
     case GST_RIFF_WAVE_FORMAT_PCM: /* PCM/wav */
index 695cda5..880e8a8 100644 (file)
@@ -155,7 +155,7 @@ GST_PAD_TEMPLATE_FACTORY (audio_sink_factory,
   ),
   GST_CAPS_NEW (
     "avimux_sink_audio",
-    "audio/mp3",
+    "audio/x-mp3",
       NULL
   ),
   GST_CAPS_NEW (
@@ -417,7 +417,7 @@ gst_avimux_sinkconnect (GstPad *pad, GstCaps *vscaps)
       avimux->auds_hdr.samplesize = avimux->auds_hdr.scale = avimux->auds.blockalign = width * avimux->auds.channels/8;
       goto done;
     }
-    else if (!strcmp (mimetype, "audio/mp3"))
+    else if (!strcmp (mimetype, "audio/x-mp3"))
     {
       gint layer;