mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
basesrc: mind boggling wrap when comparing offsets
This commit is contained in:
parent
8da78d1595
commit
e10af7c409
1 changed files with 2 additions and 2 deletions
|
@ -2292,8 +2292,8 @@ gst_base_src_update_length (GstBaseSrc * src, guint64 offset, guint * length,
|
|||
/* check size if we have one */
|
||||
if (maxsize != -1) {
|
||||
/* if we run past the end, check if the file became bigger and
|
||||
* retry. */
|
||||
if (G_UNLIKELY (offset + *length >= maxsize || force)) {
|
||||
* retry. Mind wrap when checking. */
|
||||
if (G_UNLIKELY (offset >= maxsize || offset + *length >= maxsize || force)) {
|
||||
/* see if length of the file changed */
|
||||
if (bclass->get_size)
|
||||
if (!bclass->get_size (src, &size))
|
||||
|
|
Loading…
Reference in a new issue