gst/audioconvert/audioconvert.c: Use realloc else we lose our original data.

Original commit message from CVS:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
Use realloc else we lose our original data.
This commit is contained in:
Wim Taymans 2005-08-26 17:46:45 +00:00
parent f0f2b133dd
commit 123aa7de1a
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,12 @@
2005-08-26 Wim Taymans <wim@fluendo.com>
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
Use realloc else we lose our original data.
2005-08-26 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/audioresample/gstaudioresample.c:

View file

@ -312,8 +312,7 @@ get_temp_buffer (AudioConvertCtx * ctx, gpointer src, gint srcsize,
result = src;
} else {
if (ctx->tmpbufsize < tmpsize) {
g_free (ctx->tmpbuf);
ctx->tmpbuf = g_malloc (tmpsize);
ctx->tmpbuf = g_realloc (ctx->tmpbuf, tmpsize);
ctx->tmpbufsize = tmpsize;
}
result = ctx->tmpbuf;