mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
532bb2e605
commit
89df316769
2 changed files with 7 additions and 1 deletions
|
@ -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),
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue