Add support for FLAC

This commit is contained in:
Sebastian Dröge 2012-09-14 13:25:36 +02:00
parent b64e57ce42
commit afbc23ceed

View file

@ -173,6 +173,14 @@ create_sink_caps (const GstAmcCodecInfo * codec_info)
"rate", GST_TYPE_INT_RANGE, 1, G_MAXINT, "rate", GST_TYPE_INT_RANGE, 1, G_MAXINT,
"channels", GST_TYPE_INT_RANGE, 1, G_MAXINT, NULL); "channels", GST_TYPE_INT_RANGE, 1, G_MAXINT, NULL);
gst_caps_append_structure (ret, tmp); 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 { } else {
GST_WARNING ("Unsupported mimetype '%s'", type->mime); GST_WARNING ("Unsupported mimetype '%s'", type->mime);
} }