mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
baseparse: fix pull mode cache size comparison
This commit is contained in:
parent
be9c6045d0
commit
23e55f4d6b
1 changed files with 1 additions and 1 deletions
|
@ -1216,7 +1216,7 @@ gst_base_parse_pull_range (GstBaseParse * parse, guint size,
|
|||
guint cache_size = GST_BUFFER_SIZE (parse->priv->cache);
|
||||
|
||||
if (cache_offset <= parse->priv->offset &&
|
||||
(parse->priv->offset + size) < (cache_offset + cache_size)) {
|
||||
(parse->priv->offset + size) <= (cache_offset + cache_size)) {
|
||||
*buffer = gst_buffer_create_sub (parse->priv->cache,
|
||||
parse->priv->offset - cache_offset, size);
|
||||
GST_BUFFER_OFFSET (*buffer) = parse->priv->offset;
|
||||
|
|
Loading…
Reference in a new issue