gst/audioconvert/gstaudioconvert.c: Initalize the AudioConvertCtx with zeroes, otherwise it will contain pointers to ...

Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_init):
Initalize the AudioConvertCtx with zeroes, otherwise it will contain
pointers to random memory which are passed to g_free() when
audio_convert_prepare_context() is called the first time.
This commit is contained in:
Sebastian Dröge 2007-04-24 18:58:25 +00:00
parent 37a334ddb7
commit 84c824b952
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2007-04-24 Sebastian Dröge <slomo@circular-chaos.org>
* gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_init):
Initalize the AudioConvertCtx with zeroes, otherwise it will contain
pointers to random memory which are passed to g_free() when
audio_convert_prepare_context() is called the first time.
2007-04-24 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Dan Williams <dcbw redhat com>

View file

@ -226,6 +226,7 @@ gst_audio_convert_class_init (GstAudioConvertClass * klass)
static void
gst_audio_convert_init (GstAudioConvert * this, GstAudioConvertClass * g_class)
{
memset (&this->ctx, 0, sizeof (AudioConvertCtx));
}
static void