From afbc23ceedf16f934df13c4388fe7b4ee1c2468d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 14 Sep 2012 13:25:36 +0200 Subject: [PATCH] Add support for FLAC --- sys/androidmedia/gstamcaudiodec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/androidmedia/gstamcaudiodec.c b/sys/androidmedia/gstamcaudiodec.c index ddd01d3cdb..0b9891cf69 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); }