mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
Replace audio/mp3 with audio/x-mp3 and audio/x-flac with application/x-flac
Original commit message from CVS: Replace audio/mp3 with audio/x-mp3 and audio/x-flac with application/x-flac
This commit is contained in:
parent
3b540378fb
commit
3332daedad
4 changed files with 6 additions and 6 deletions
|
@ -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");
|
||||
|
|
|
@ -21,9 +21,9 @@ main (int argc, char *argv[])
|
|||
|
||||
autoplug = gst_autoplug_factory_make ("static");
|
||||
|
||||
g_print ("Autoplugging between audio/mp3 and audio/raw ...\n");
|
||||
if ((element = autoplug_caps (autoplug, "audio/mp3", "audio/raw")) == NULL)
|
||||
g_print ("Could not autoplug between audio/mp3 and audio/raw !\n");
|
||||
g_print ("Autoplugging between audio/x-mp3 and audio/raw ...\n");
|
||||
if ((element = autoplug_caps (autoplug, "audio/x-mp3", "audio/raw")) == NULL)
|
||||
g_print ("Could not autoplug between audio/x-mp3 and audio/raw !\n");
|
||||
xmlSaveFile ("autoplug2_1.gst", gst_xml_write (element));
|
||||
|
||||
g_print ("Autoplugging between video/mpeg and audio/raw ...\n");
|
||||
|
|
|
@ -20,7 +20,7 @@ main (int argc, char *argv[])
|
|||
element = gst_autoplug_to_renderers (autoplug,
|
||||
gst_caps_new (
|
||||
"mp3caps",
|
||||
"audio/mp3",
|
||||
"audio/x-mp3",
|
||||
NULL
|
||||
),
|
||||
sink,
|
||||
|
|
|
@ -17,7 +17,7 @@ main (int argc, char *argv[])
|
|||
autoplug2 = gst_autoplug_factory_make ("static");
|
||||
|
||||
element = gst_autoplug_to_renderers (autoplug,
|
||||
gst_caps_new ("mp3caps", "audio/mp3", NULL), sink2, NULL);
|
||||
gst_caps_new ("mp3caps", "audio/x-mp3", NULL), sink2, NULL);
|
||||
xmlSaveFile ("autoplug3_1.gst", gst_xml_write (element));
|
||||
|
||||
element = gst_autoplug_to_renderers (autoplug,
|
||||
|
|
Loading…
Reference in a new issue