mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +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;
|
int rate = 0;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
|
|
||||||
|
memset (format, 0, sizeof (AudioStreamBasicDescription));
|
||||||
|
|
||||||
structure = gst_caps_get_structure (caps, 0);
|
structure = gst_caps_get_structure (caps, 0);
|
||||||
gst_structure_get_int (structure, "rate", &rate);
|
gst_structure_get_int (structure, "rate", &rate);
|
||||||
gst_structure_get_int (structure, "channels", &channels);
|
gst_structure_get_int (structure, "channels", &channels);
|
||||||
|
|
Loading…
Reference in a new issue