Original commit message from CVS:
Based on a patch by:
Victor STINNER <victor dot stinner at haypocalc dot com>
* gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers):
Set variable to NULL after freeing it to prevent double frees
or make failures by another use of it afterwards more obvious
and fix use of it after the freeing.
+2008-01-19 Sebastian Dröge <slomo@circular-chaos.org>
+
+ Based on a patch by:
+ Victor STINNER <victor dot stinner at haypocalc dot com>
+
+ * gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers):
+ Set variable to NULL after freeing it to prevent double frees
+ or make failures by another use of it afterwards more obvious
+ and fix use of it after the freeing.
+
2008-01-18 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/udp/gstmultiudpsink.c:
wav->vbr = FALSE;
g_free (header);
+ header = NULL;
/* do format specific handling */
switch (wav->format) {
{
GST_ELEMENT_ERROR (wav, STREAM, FAILED, (NULL),
("Stream claims blockalign = %u, which is more than %u - invalid data",
- header->blockalign,
- header->channels * (guint) ceil (header->size / 8.0)));
+ wav->blockalign, wav->channels * (guint) ceil (wav->depth / 8.0)));
g_free (codec_name);
return GST_FLOW_ERROR;
}