Commit 312d7d80 authored by Stefan Kost's avatar Stefan Kost

ringbuffer: add human readable format names when logging

Add string array with human readable names for format and type to be used in log
parent e2e7ae01
......@@ -223,6 +223,65 @@ build_linear_format (int depth, int width, int unsignd, int big_endian)
return formats;
static const gchar *format_type_names[] = {
"mu law",
"a law",
"ima adpcm",
static const gchar *format_names[] = {
* gst_ring_buffer_debug_spec_caps:
* @spec: the spec to debug
......@@ -235,8 +294,10 @@ gst_ring_buffer_debug_spec_caps (GstRingBufferSpec * spec)
gint i, bytes;
GST_DEBUG ("spec caps: %p %" GST_PTR_FORMAT, spec->caps, spec->caps);
GST_DEBUG ("parsed caps: type: %d", spec->type);
GST_DEBUG ("parsed caps: format: %d", spec->format);
GST_DEBUG ("parsed caps: type: %d, '%s'", spec->type,
GST_DEBUG ("parsed caps: format: %d, '%s'", spec->format,
GST_DEBUG ("parsed caps: width: %d", spec->width);
GST_DEBUG ("parsed caps: depth: %d", spec->depth);
GST_DEBUG ("parsed caps: sign: %d", spec->sign);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment