mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
ringbuffer: Add support for DTS buffers
This commit is contained in:
parent
6032e39025
commit
33ef9ab054
1 changed files with 10 additions and 0 deletions
|
@ -436,6 +436,16 @@ gst_ring_buffer_parse_caps (GstRingBufferSpec * spec, GstCaps * caps)
|
||||||
spec->width = 16;
|
spec->width = 16;
|
||||||
spec->depth = 16;
|
spec->depth = 16;
|
||||||
spec->channels = 2;
|
spec->channels = 2;
|
||||||
|
} else if (!strncmp (mimetype, "audio/x-dts", 11)) {
|
||||||
|
/* extract the needed information from the cap */
|
||||||
|
if (!(gst_structure_get_int (structure, "rate", &spec->rate)))
|
||||||
|
goto parse_error;
|
||||||
|
|
||||||
|
spec->type = GST_BUFTYPE_DTS;
|
||||||
|
spec->format = GST_DTS;
|
||||||
|
spec->width = 16;
|
||||||
|
spec->depth = 16;
|
||||||
|
spec->channels = 2;
|
||||||
} else {
|
} else {
|
||||||
goto parse_error;
|
goto parse_error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue