CppCheck: About assert side-effect and remove_if that i don't know enough..

This commit is contained in:
luxsie 2015-04-10 19:29:45 +08:00
parent d072eba687
commit cd23a2ecaf
3 changed files with 5 additions and 2 deletions

View file

@ -148,7 +148,7 @@ void ElementaryStream::push_au(u32 size, u64 dts, u64 pts, u64 userdata, bool ra
u32 addr;
{
std::lock_guard<std::mutex> lock(m_mutex);
// TODO:: Syphurith: Should us convert this to a if statement? Since Asserts aren't included in Release builds.
assert(!is_full(size));
if (put + size + 128 > memAddr + memSize)