tagdemux: don't abort when downstream pulls a buffer of size 0
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 12 Feb 2009 09:18:20 +0000 (09:18 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 12 Feb 2009 09:18:20 +0000 (09:18 +0000)
Pulling a 0-sized buffer is allowed, and we should handle this correctly instead of
aborting. Fixes #571009 (wma file with ID3v2 tag).

gst-libs/gst/tag/gsttagdemux.c

index aa16d4f..9f041da 100644 (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;