mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
matroskademux: fix ebml read cache usage
This commit is contained in:
parent
0a0f7ecc16
commit
e4183c6904
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ gst_ebml_read_peek_bytes (GstEbmlRead * ebml, guint size, GstBuffer ** p_buf,
|
|||
guint cache_size = GST_BUFFER_SIZE (ebml->cached_buffer);
|
||||
|
||||
if (cache_offset <= ebml->offset &&
|
||||
(ebml->offset + size) < (cache_offset + cache_size)) {
|
||||
(ebml->offset + size) <= (cache_offset + cache_size)) {
|
||||
if (p_buf)
|
||||
*p_buf = gst_buffer_create_sub (ebml->cached_buffer,
|
||||
ebml->offset - cache_offset, size);
|
||||
|
|
Loading…
Reference in a new issue