mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
audiomixer: Do not try to resize a buffer to a negative size on EOS
This commit is contained in:
parent
7e75f21a41
commit
d5a171cae9
1 changed files with 2 additions and 1 deletions
|
@ -1500,8 +1500,9 @@ gst_audiomixer_aggregate (GstAggregator * agg)
|
|||
"Last buffer is incomplete: %" G_GUINT64_FORMAT " <= %"
|
||||
G_GUINT64_FORMAT, max_offset, next_offset);
|
||||
next_offset = max_offset;
|
||||
if (next_offset > audiomixer->offset)
|
||||
gst_buffer_resize (outbuf, 0, (next_offset - audiomixer->offset) * bpf);
|
||||
|
||||
gst_buffer_resize (outbuf, 0, (next_offset - audiomixer->offset) * bpf);
|
||||
next_timestamp = gst_util_uint64_scale (next_offset, GST_SECOND, rate);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue