Commit 25027d3a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

stream: add assertions

parent 9d635a91
......@@ -474,6 +474,7 @@ int stream_Seek(stream_t *s, uint64_t offset)
block_Release(peek);
}
assert(stream_Tell(s) == offset);
return VLC_SUCCESS;
}
}
......@@ -481,8 +482,11 @@ int stream_Seek(stream_t *s, uint64_t offset)
else
{
if (priv->offset == offset)
{
assert(stream_Tell(s) == offset);
return VLC_SUCCESS; /* Nothing to do! */
}
}
if (s->pf_seek == NULL)
return VLC_EGENERIC;
......@@ -499,7 +503,8 @@ int stream_Seek(stream_t *s, uint64_t offset)
block_Release(peek);
}
return ret;
assert(stream_Tell(s) == offset);
return VLC_SUCCESS;
}
static int stream_ControlInternal(stream_t *s, int cmd, ...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment