From a624df17c40fec7232f4047ae93b46cbe1d3be7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 12 Feb 2009 09:18:20 +0000 Subject: [PATCH] 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). --- gst-libs/gst/tag/gsttagdemux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c index aa16d4f6e3..9f041daa70 100644 --- a/gst-libs/gst/tag/gsttagdemux.c +++ b/gst-libs/gst/tag/gsttagdemux.c @@ -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;