mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
adding formats
Original commit message from CVS: adding formats
This commit is contained in:
parent
9955ea95b9
commit
2db9dfdb45
1 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,12 @@ have_type (GstElement *element, GstCaps *caps, GstCaps **private_caps)
|
||||||
else if (strstr (mime, "x-ogg")) {
|
else if (strstr (mime, "x-ogg")) {
|
||||||
decoder = gst_element_factory_make ("vorbisfile", "decoder");
|
decoder = gst_element_factory_make ("vorbisfile", "decoder");
|
||||||
}
|
}
|
||||||
|
else if (strstr (mime, "x-wav")) {
|
||||||
|
decoder = gst_element_factory_make ("wavparse", "decoder");
|
||||||
|
}
|
||||||
|
else if (strstr (mime, "x-flac")) {
|
||||||
|
decoder = gst_element_factory_make ("flacdec", "decoder");
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
g_print ("mime type %s not handled in this program, exiting.\n", mime);
|
g_print ("mime type %s not handled in this program, exiting.\n", mime);
|
||||||
g_free (mime);
|
g_free (mime);
|
||||||
|
|
Loading…
Reference in a new issue