mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
atdec: Initialize the audio description with zeroes
This commit is contained in:
parent
a43db678c1
commit
2d8b195911
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue