mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
Fix timeline level distribution plotting after gaps
This commit is contained in:
parent
99c871ba4a
commit
5b41b6e861
1 changed files with 7 additions and 4 deletions
|
@ -166,22 +166,25 @@ class LevelDistributionSentinel (object):
|
|||
|
||||
if not partitions:
|
||||
return
|
||||
|
||||
|
||||
finished = False
|
||||
while tree_iter:
|
||||
y -= 1
|
||||
if y == 0:
|
||||
y = YIELD_LIMIT
|
||||
yield True
|
||||
level = model_get (tree_iter, id_level)
|
||||
if i > partitions[partitions_i]:
|
||||
while i > partitions[partitions_i]:
|
||||
data.append (tuple (counts))
|
||||
counts = [0] * 6
|
||||
partitions_i += 1
|
||||
if partitions_i == len (partitions):
|
||||
# FIXME?
|
||||
finished = True
|
||||
break
|
||||
i += 1
|
||||
if finished:
|
||||
break
|
||||
counts[level] += 1
|
||||
i += 1
|
||||
tree_iter = model_next (tree_iter)
|
||||
|
||||
# Now handle the last one:
|
||||
|
|
Loading…
Reference in a new issue