diff --git a/gst-libs/gst/pbutils/codec-utils.c b/gst-libs/gst/pbutils/codec-utils.c index 3648ab76c9..8a2f6c30b2 100644 --- a/gst-libs/gst/pbutils/codec-utils.c +++ b/gst-libs/gst/pbutils/codec-utils.c @@ -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; }