atdec: Initialize the audio description with zeroes
authorSebastian Dröge <sebastian@centricular.com>
Tue, 11 Mar 2014 10:18:11 +0000 (11:18 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 11 Mar 2014 14:34:09 +0000 (15:34 +0100)
sys/applemedia/atdec.c

index 32e5ca7d47ac1cd9684e65aad85de110d0d920d6..0fe8df013efaf351635521ae684d90898eec8eab 100644 (file)
@@ -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);