only open timelines needed to computed average color for clips

This commit is contained in:
j 2011-10-29 16:45:27 +02:00
commit 88b4d9f62f
3 changed files with 8 additions and 7 deletions

View file

@ -935,7 +935,7 @@ class Item(models.Model):
def make_timeline(self):
streams = self.streams()
if len(streams) > 1:
if streams.count() > 1:
timelines = [s.timeline_prefix for s in self.streams()]
join_timelines(timelines, self.timeline_prefix)