baseparse: fix pull mode cache size comparison
This commit is contained in:
parent
83c7b38a10
commit
d51d8ca35c
@ -1216,7 +1216,7 @@ gst_base_parse_pull_range (GstBaseParse * parse, guint size,
|
|||||||
guint cache_size = GST_BUFFER_SIZE (parse->priv->cache);
|
guint cache_size = GST_BUFFER_SIZE (parse->priv->cache);
|
||||||
|
|
||||||
if (cache_offset <= parse->priv->offset &&
|
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,
|
*buffer = gst_buffer_create_sub (parse->priv->cache,
|
||||||
parse->priv->offset - cache_offset, size);
|
parse->priv->offset - cache_offset, size);
|
||||||
GST_BUFFER_OFFSET (*buffer) = parse->priv->offset;
|
GST_BUFFER_OFFSET (*buffer) = parse->priv->offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user