mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
sbc: audio: Initialise SBC data before use in sbcparse element
This commit is contained in:
parent
6979975963
commit
dace80cc41
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,8 @@ sbc_parse_chain (GstPad * pad, GstBuffer * buffer)
|
|||
GstBuffer *output;
|
||||
int consumed;
|
||||
|
||||
sbc_init (&parse->new_sbc, 0);
|
||||
|
||||
consumed = sbc_parse (&parse->new_sbc, data + offset, size - offset);
|
||||
if (consumed <= 0)
|
||||
break;
|
||||
|
@ -100,6 +102,8 @@ sbc_parse_chain (GstPad * pad, GstBuffer * buffer)
|
|||
parse->first_parsing = FALSE;
|
||||
}
|
||||
|
||||
sbc_finish (&parse->new_sbc);
|
||||
|
||||
res = gst_pad_alloc_buffer_and_set_caps (parse->srcpad,
|
||||
GST_BUFFER_OFFSET_NONE, consumed, parse->outcaps, &output);
|
||||
|
||||
|
|
Loading…
Reference in a new issue