gst-libs/gst/riff/riff-read.c: Don't try to create a zero-sized subbuffer.

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.
This commit is contained in:
Edward Hervey 2005-11-27 19:18:31 +00:00
parent 532bb2e605
commit 89df316769
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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),

View file

@ -415,7 +415,8 @@ gst_riff_parse_strf_auds (GstElement * element,
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 */