mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
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:
parent
1fedfec220
commit
a624df17c4
1 changed files with 0 additions and 2 deletions
|
@ -432,8 +432,6 @@ gst_tag_demux_trim_buffer (GstTagDemux * tagdemux, GstBuffer ** buf_ref)
|
||||||
need_sub = TRUE;
|
need_sub = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_assert (out_size > 0);
|
|
||||||
|
|
||||||
if (need_sub == TRUE) {
|
if (need_sub == TRUE) {
|
||||||
if (out_size != GST_BUFFER_SIZE (buf) || !gst_buffer_is_writable (buf)) {
|
if (out_size != GST_BUFFER_SIZE (buf) || !gst_buffer_is_writable (buf)) {
|
||||||
GstBuffer *sub;
|
GstBuffer *sub;
|
||||||
|
|
Loading…
Reference in a new issue