ext/vorbis/vorbisdec.c: Don't error out on 0-sized packets, just emit a warning because this is not a fatal error. Fi...

Original commit message from CVS:
* ext/vorbis/vorbisdec.c: (vorbis_dec_decode_buffer):
Don't error out on 0-sized packets, just emit a warning because this is
not a fatal error. Fixes #451145.
This commit is contained in:
Wim Taymans 2007-06-27 09:49:51 +00:00
parent 757e358d24
commit 4e676414f0
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2007-06-27 Wim Taymans <wim@fluendo.com>
* ext/vorbis/vorbisdec.c: (vorbis_dec_decode_buffer):
Don't error out on 0-sized packets, just emit a warning because this is
not a fatal error. Fixes #451145.
2007-06-25 Stefan Kost <ensonic@users.sf.net>
* docs/plugins/gst-plugins-base-plugins.args:

View file

@ -1150,8 +1150,11 @@ done:
/* ERRORS */
wrong_size:
{
GST_ELEMENT_ERROR (vd, STREAM, DECODE, (NULL), ("empty buffer received"));
result = GST_FLOW_ERROR;
/* don't error out here, just ignore the buffer, it's invalid for vorbis but
* not fatal. */
GST_ELEMENT_WARNING (vd, STREAM, DECODE, (NULL),
("empty buffer received, ignoring"));
result = GST_FLOW_OK;
vd->discont = TRUE;
goto done;
}