mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
speex: Fix segfault when resetting the codecs multiple times
https://bugzilla.gnome.org/show_bug.cgi?id=738793
This commit is contained in:
parent
163155715f
commit
ec3af50cc2
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue