Commit 061546d9 authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Tim-Philipp Müller

codec-utils: Don't leak bytewriter data

In error cases, don't forget to reset it.
parent 5b2a20ae
......@@ -1567,6 +1567,7 @@ gst_codec_utils_opus_create_header (guint32 rate,
if (!hdl) {
GST_WARNING ("Error creating header");
gst_byte_writer_reset (&bw);
return NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment