diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-03-11 11:18:11 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-03-11 15:34:09 +0100 |
commit | 3682c2834d5aa5bf70efbff9c48d10c225d8a189 (patch) | |
tree | 14a73dc8912a3d4033be8fc949760d99ede22811 | |
parent | d33d4aa5935f2b6a2cd76d0b86c1410524b77cc0 (diff) | |
download | gstreamer-plugins-bad-3682c2834d5aa5bf70efbff9c48d10c225d8a189.tar.gz |
atdec: Initialize the audio description with zeroes
-rw-r--r-- | sys/applemedia/atdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/applemedia/atdec.c b/sys/applemedia/atdec.c index 32e5ca7d4..0fe8df013 100644 --- a/sys/applemedia/atdec.c +++ b/sys/applemedia/atdec.c @@ -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); |