mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
37a334ddb7
commit
84c824b952
2 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue