tagdemux: don't abort when downstream pulls a buffer of size 0

Pulling a 0-sized buffer is allowed, and we should handle this correctly instead of
aborting. Fixes #571009 (wma file with ID3v2 tag).
This commit is contained in:
Tim-Philipp Müller 2009-02-12 09:18:20 +00:00
parent 1fedfec220
commit a624df17c4

View file

@ -432,8 +432,6 @@ gst_tag_demux_trim_buffer (GstTagDemux * tagdemux, GstBuffer ** buf_ref)
need_sub = TRUE;
}
g_assert (out_size > 0);
if (need_sub == TRUE) {
if (out_size != GST_BUFFER_SIZE (buf) || !gst_buffer_is_writable (buf)) {
GstBuffer *sub;