Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
422675b8
Commit
422675b8
authored
Mar 25, 2022
by
Hugo Beauzée-Luyssen
Browse files
parser: Remove tasks stats assertion
This only ever caught false positive
parent
6997c21b
Pipeline
#203919
passed with stage
in 44 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/parser/Parser.cpp
View file @
422675b8
...
...
@@ -199,7 +199,14 @@ void Parser::updateStats()
{
if
(
m_callback
==
nullptr
)
return
;
assert
(
m_opScheduled
>=
m_opDone
);
if
(
m_opScheduled
<
m_opDone
)
{
/* After flushing, a task may still complete while we don't expect it
* anymore. Handling this properly would be racy until we have a way to
* interrupt a task, which we don't for now
*/
m_opDone
=
m_opScheduled
;
}
/*
* We don't want to spam the callback receiver each time we're done parsing
* an item, however we must signal progress when:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment