mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
Add support for FLAC
This commit is contained in:
parent
b64e57ce42
commit
afbc23ceed
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue