mirror of
https://github.com/datarhei/core.git
synced 2025-10-06 00:17:07 +08:00
Emit stale progress only if all outputs of a process are stale
This commit is contained in:
@@ -392,9 +392,9 @@ func (p *parser) Parse(line string) uint64 {
|
|||||||
|
|
||||||
if isFFmpegProgress {
|
if isFFmpegProgress {
|
||||||
// Only consider the outputs
|
// Only consider the outputs
|
||||||
pFrames = 1
|
pFrames = 0
|
||||||
for i := range p.stats.output {
|
for i := range p.stats.output {
|
||||||
pFrames *= p.stats.output[i].diff.frame
|
pFrames += p.stats.output[i].diff.frame
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user