Skip to content
Snippets Groups Projects
Commit 3682c283 authored by Sebastian Dröge's avatar Sebastian Dröge :tea:
Browse files

atdec: Initialize the audio description with zeroes

parent d33d4aa5
No related branches found
No related tags found
No related merge requests found
......@@ -213,6 +213,8 @@ gst_caps_to_at_format (GstCaps * caps, AudioStreamBasicDescription * format)
int rate = 0;
GstStructure *structure;
memset (format, 0, sizeof (AudioStreamBasicDescription));
structure = gst_caps_get_structure (caps, 0);
gst_structure_get_int (structure, "rate", &rate);
gst_structure_get_int (structure, "channels", &channels);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment