diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-09-14 13:25:36 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-10-15 16:28:40 +0200 |
commit | afbc23ceedf16f934df13c4388fe7b4ee1c2468d (patch) | |
tree | 5bfd8617a58984bd3aab4d82cce1f86c0562c769 | |
parent | b64e57ce425dacbc6426126e79270a63d62ca715 (diff) |
Add support for FLAC
-rw-r--r-- | sys/androidmedia/gstamcaudiodec.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/androidmedia/gstamcaudiodec.c b/sys/androidmedia/gstamcaudiodec.c index ddd01d3cd..0b9891cf6 100644 --- a/sys/androidmedia/gstamcaudiodec.c +++ b/sys/androidmedia/gstamcaudiodec.c @@ -173,6 +173,14 @@ create_sink_caps (const GstAmcCodecInfo * codec_info) "rate", GST_TYPE_INT_RANGE, 1, G_MAXINT, "channels", GST_TYPE_INT_RANGE, 1, G_MAXINT, NULL); gst_caps_append_structure (ret, tmp); + } else if (strcmp (type->mime, "audio/flac") == 0) { + GstStructure *tmp; + + tmp = gst_structure_new ("audio/x-flac", + "rate", GST_TYPE_INT_RANGE, 1, G_MAXINT, + "channels", GST_TYPE_INT_RANGE, 1, G_MAXINT, + "framed", G_TYPE_BOOLEAN, TRUE, NULL); + gst_caps_append_structure (ret, tmp); } else { GST_WARNING ("Unsupported mimetype '%s'", type->mime); } |