mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
gst/audioconvert/audioconvert.c: When clearing an audioconvert context, set tmpbufsize to zero, so we'll allocate it ...
Original commit message from CVS: * gst/audioconvert/audioconvert.c: (audio_convert_clean_context): When clearing an audioconvert context, set tmpbufsize to zero, so we'll allocate it again later if required. This fixes audioconvert re-negotiating formats, which previously segfaulted with a NULL destination buffer.
This commit is contained in:
parent
6b235f7ee3
commit
5fba886320
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-10-26 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
|
* gst/audioconvert/audioconvert.c: (audio_convert_clean_context):
|
||||||
|
When clearing an audioconvert context, set tmpbufsize to zero, so
|
||||||
|
we'll allocate it again later if required.
|
||||||
|
This fixes audioconvert re-negotiating formats, which previously
|
||||||
|
segfaulted with a NULL destination buffer.
|
||||||
|
|
||||||
2005-10-26 Zeeshan Ali <zeenix@gmail.com>
|
2005-10-26 Zeeshan Ali <zeenix@gmail.com>
|
||||||
|
|
||||||
* gst-libs/gst/rtp/gstbasertpdepayload.c:
|
* gst-libs/gst/rtp/gstbasertpdepayload.c:
|
||||||
|
|
|
@ -272,6 +272,7 @@ audio_convert_clean_context (AudioConvertCtx * ctx)
|
||||||
|
|
||||||
g_free (ctx->tmpbuf);
|
g_free (ctx->tmpbuf);
|
||||||
ctx->tmpbuf = NULL;
|
ctx->tmpbuf = NULL;
|
||||||
|
ctx->tmpbufsize = 0;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue