diff options
-rw-r--r-- | gst/audiomixer/gstaudiomixer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/audiomixer/gstaudiomixer.c b/gst/audiomixer/gstaudiomixer.c index cf3f707ac..4202f0016 100644 --- a/gst/audiomixer/gstaudiomixer.c +++ b/gst/audiomixer/gstaudiomixer.c @@ -1840,8 +1840,9 @@ gst_audiomixer_collected (GstCollectPads * pads, gpointer user_data) "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); } } |