diff --git a/gst-libs/gst/audio/gstringbuffer.c b/gst-libs/gst/audio/gstringbuffer.c index d0a6f7ebff..2a56bab15a 100644 --- a/gst-libs/gst/audio/gstringbuffer.c +++ b/gst-libs/gst/audio/gstringbuffer.c @@ -436,6 +436,16 @@ gst_ring_buffer_parse_caps (GstRingBufferSpec * spec, GstCaps * caps) spec->width = 16; spec->depth = 16; spec->channels = 2; + } else if (!strncmp (mimetype, "audio/x-eac3", 12)) { + /* extract the needed information from the cap */ + if (!(gst_structure_get_int (structure, "rate", &spec->rate))) + goto parse_error; + + spec->type = GST_BUFTYPE_EAC3; + spec->format = GST_EAC3; + spec->width = 64; + spec->depth = 64; + 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)))