mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
adapter: refresh skip following merge_up attempt
... as the latter might now adjust skip as well.
This commit is contained in:
parent
f81e73a6cd
commit
6a48006c21
1 changed files with 1 additions and 0 deletions
|
@ -763,6 +763,7 @@ gst_adapter_take_buffer (GstAdapter * adapter, gsize nbytes)
|
|||
if (gst_adapter_try_to_merge_up (adapter, nbytes)) {
|
||||
/* Merged something, let's try again for sub-buffering */
|
||||
cur = adapter->buflist->data;
|
||||
skip = adapter->skip;
|
||||
if (gst_buffer_get_size (cur) >= nbytes + skip) {
|
||||
GST_LOG_OBJECT (adapter, "providing buffer of %" G_GSIZE_FORMAT " bytes"
|
||||
" via sub-buffer", nbytes);
|
||||
|
|
Loading…
Reference in a new issue