mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
wavparse: Unset DISCONT buffer flag for divided into multiple buffers in push mode
In push mode (streaming), if the received chunk buffer size from _chain is bigger than output buffer size, the flags of the divided-buffers are propagated to the DISCONT flag from first received chunk buffer. This unexpected buffers contained DISCONT flags are abnormally transformed when changing the sampling rate by audioresample element. So unset unnecessary DISCONT flag before pad_push(). Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2322>
This commit is contained in:
parent
6b6ea3c1a6
commit
087ebb9f4d
1 changed files with 2 additions and 0 deletions
|
@ -2158,6 +2158,8 @@ iterate_adapter:
|
||||||
GST_DEBUG_OBJECT (wav, "marking DISCONT");
|
GST_DEBUG_OBJECT (wav, "marking DISCONT");
|
||||||
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
|
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
|
||||||
wav->discont = FALSE;
|
wav->discont = FALSE;
|
||||||
|
} else {
|
||||||
|
GST_BUFFER_FLAG_UNSET (buf, GST_BUFFER_FLAG_DISCONT);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_BUFFER_TIMESTAMP (buf) = timestamp;
|
GST_BUFFER_TIMESTAMP (buf) = timestamp;
|
||||||
|
|
Loading…
Reference in a new issue