summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/speex/gstspeexdec.c1
-rw-r--r--ext/speex/gstspeexenc.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c
index 9b62ebe72..587255d7b 100644
--- a/ext/speex/gstspeexdec.c
+++ b/ext/speex/gstspeexdec.c
@@ -136,6 +136,7 @@ gst_speex_dec_reset (GstSpeexDec * dec)
free (dec->header);
dec->header = NULL;
speex_bits_destroy (&dec->bits);
+ speex_bits_set_bit_buffer (&dec->bits, NULL, 0);
gst_buffer_replace (&dec->streamheader, NULL);
gst_buffer_replace (&dec->vorbiscomment, NULL);
diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c
index 8e13eb1c2..9a2888d60 100644
--- a/ext/speex/gstspeexenc.c
+++ b/ext/speex/gstspeexenc.c
@@ -269,6 +269,7 @@ gst_speex_enc_stop (GstAudioEncoder * benc)
enc->state = NULL;
}
speex_bits_destroy (&enc->bits);
+ speex_bits_set_bit_buffer (&enc->bits, NULL, 0);
gst_tag_list_unref (enc->tags);
enc->tags = NULL;