dont create transparent audio timelines

This commit is contained in:
j 2012-01-21 16:10:41 +05:30
parent 90cf974ba0
commit efc81d7bc9

View file

@ -89,8 +89,8 @@ class Audio(gst.Pipeline):
height = int((p * self.tile_height) / 256) * 2
crop = int((self.tile_height-height) / 2)
if p: p += 20
color = (p, p, p, 255)
color = (255,255,255,255)
color = (p, p, p)
color = (255,255,255)
if start:
end = self.tile_height - crop
@ -144,7 +144,7 @@ class Timeline(Audio):
ntiles = int(math.ceil(float(self.frames)/self.input_tile_width))
self.tiles = []
for i in range(ntiles):
tile = Image.new("RGBA", (self.input_tile_width, height), (0, 0, 0, 0))
tile = Image.new("RGB", (self.input_tile_width, height), (0, 0, 0))
self.tiles.append(tile)
self.set_state(gst.STATE_PLAYING)