Original commit message from CVS:
* gst-libs/gst/riff/riff-read.c: (gst_riff_parse_strf_auds):
Don't try to create a zero-sized subbuffer.
+2005-11-27 Edward Hervey <edward@fluendo.com>
+
+ * gst-libs/gst/riff/riff-read.c: (gst_riff_parse_strf_auds):
+ Don't try to create a zero-sized subbuffer.
+
2005-11-27 Julien MOUTTE <julien@moutte.net>
* sys/ximage/ximagesink.c: (gst_ximage_buffer_free),
len, GST_BUFFER_SIZE (buf) - 2 - sizeof (gst_riff_strf_auds));
len = GST_BUFFER_SIZE (buf) - 2 - sizeof (gst_riff_strf_auds);
}
- *data = gst_buffer_create_sub (buf, sizeof (gst_riff_strf_auds) + 2, len);
+ if (len)
+ *data = gst_buffer_create_sub (buf, sizeof (gst_riff_strf_auds) + 2, len);
}
/* debug */