From f61574dbda61e02e05084d1faeddb836962a4b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Thu, 29 Nov 2007 13:51:46 +0200 Subject: [PATCH] Fix level distribution calculation for the last partition --- debug-viewer/GstDebugViewer/Plugins/Timeline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug-viewer/GstDebugViewer/Plugins/Timeline.py b/debug-viewer/GstDebugViewer/Plugins/Timeline.py index d226d04431..6cbb38ee4d 100644 --- a/debug-viewer/GstDebugViewer/Plugins/Timeline.py +++ b/debug-viewer/GstDebugViewer/Plugins/Timeline.py @@ -175,7 +175,8 @@ class LevelDistributionSentinel (object): counts[level] += 1 tree_iter = model_next (tree_iter) - # FIXME: We lose the last partition here! + # Now handle the last one: + data.append (tuple (counts)) yield False