mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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:
parent
f0f2b133dd
commit
123aa7de1a
2 changed files with 10 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue