mirror of
https://github.com/datarhei/core.git
synced 2025-10-04 15:42:57 +08:00
Fix stale detection with progress patch
This commit is contained in:
@@ -379,13 +379,12 @@ func (p *parser) Parse(line string) uint64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Calculate if any of the processed frames staled.
|
// Calculate if any of the processed frames staled.
|
||||||
// If one number of frames in an output is the same as
|
// If one number of frames in an output is the same as before, then pFrames becomes 0.
|
||||||
// before, then pFrames becomes 0.
|
pFrames := p.stats.main.diff.frame
|
||||||
var pFrames uint64 = 0
|
|
||||||
|
|
||||||
pFrames = p.stats.main.diff.frame
|
|
||||||
|
|
||||||
if isFFmpegProgress {
|
if isFFmpegProgress {
|
||||||
|
// Only consider the outputs
|
||||||
|
pFrames = 1
|
||||||
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