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:44 +0000 (17:20 +0000)
committerIain Holmes <iain@prettypeople.org>
Sun, 8 Dec 2002 17:20:44 +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/shout/gstshout.c
gst-libs/gst/media-info/media-info.c
gst/mpeg1sys/gstmpeg1systemencode.c
gst/mpegaudioparse/gstmp3types.c
gst/mpegaudioparse/gstmpegaudioparse.c

index 533d2cb4c9cf098ff7bb9e5ce35502ea731dc0a1..39888ba57e107e6e93b913abf39cbf1dcd9e04d5 100644 (file)
@@ -75,7 +75,7 @@ sink_template_factory (void)
       GST_PAD_ALWAYS,
       gst_caps_new (
         "icecastsend_sink",
-        "audio/mp3",
+        "audio/x-mp3",
        NULL),
       NULL);
   }
index 08f93eb601687b428e815e153322b8f54e9eecb2..4dea33b45deaf8902cb71a4c759c1888b521c0cf 100644 (file)
@@ -409,7 +409,7 @@ gst_media_info_get_decoder (GstMediaInfo *info, const char *mime)
     GMI_DEBUG("DEBUG: no decoder in table, inserting one\n");
     if (strcmp (mime, "application/x-ogg") == 0)
       factory = g_strdup ("vorbisfile");
-    else if (strcmp (mime, "audio/mp3") == 0)
+    else if (strcmp (mime, "audio/x-mp3") == 0)
       factory = g_strdup ("mad");
     else if (strcmp (mime, "audio/x-wav") == 0)
       factory = g_strdup ("wavparse");
index 11cca2de79589989733d53f9651fdeecf59f821d..246a98d4fdf4fc04cd3c77cb8f4461932606a628 100644 (file)
@@ -78,7 +78,7 @@ GST_PAD_TEMPLATE_FACTORY (audio_sink_factory,
   GST_PAD_REQUEST,
   GST_CAPS_NEW (
     "sink_audio",
-    "audio/mp3",
+    "audio/x-mp3",
     NULL
   )
 )
index d0ee00c9c498650b224f29787b3f8b17904a37be..43c82b693c92ef104c310e03ed2a2ea3bc80fe71 100644 (file)
@@ -24,7 +24,7 @@
 static GstCaps* mp3_type_find(GstBuffer *buf, gpointer private);
 
 static GstTypeDefinition mp3type_definitions[] = {
-  { "mp3types_audio/mp3", "audio/mp3", ".mp3 .mp2 .mp1 .mpga", mp3_type_find },
+  { "mp3types_audio/x-mp3", "audio/x-mp3", ".mp3 .mp2 .mp1 .mpga", mp3_type_find },
   { NULL, NULL, NULL, NULL },
 };
 
@@ -92,7 +92,7 @@ mp3_type_find(GstBuffer *buf, gpointer private)
     return NULL;
 
 done:
-  caps = gst_caps_new ("mp3_type_find", "audio/mp3", NULL);
+  caps = gst_caps_new ("mp3_type_find", "audio/x-mp3", NULL);
 
   return caps;
 }
index fa466f680afc6d75b121ffe3f5f02a37c30c3bd3..f78415f17a2430d440d95473c6fc070393158e48 100644 (file)
@@ -42,7 +42,7 @@ mp3_src_factory (void)
        GST_PAD_ALWAYS,
        gst_caps_new (
          "mp3parse_src",
-         "audio/mp3",
+         "audio/x-mp3",
          /*
          gst_props_new (
            "layer",   GST_PROPS_INT_RANGE (1, 3),
@@ -63,7 +63,7 @@ mp3_sink_factory (void)
        GST_PAD_ALWAYS,
        gst_caps_new (
          "mp3parse_sink",
-         "audio/mp3",
+         "audio/x-mp3",
          NULL),
        NULL);
 };