dont create transparent audio timelines
This commit is contained in:
parent
90cf974ba0
commit
efc81d7bc9
1 changed files with 3 additions and 3 deletions
|
@ -89,8 +89,8 @@ class Audio(gst.Pipeline):
|
||||||
height = int((p * self.tile_height) / 256) * 2
|
height = int((p * self.tile_height) / 256) * 2
|
||||||
crop = int((self.tile_height-height) / 2)
|
crop = int((self.tile_height-height) / 2)
|
||||||
if p: p += 20
|
if p: p += 20
|
||||||
color = (p, p, p, 255)
|
color = (p, p, p)
|
||||||
color = (255,255,255,255)
|
color = (255,255,255)
|
||||||
|
|
||||||
if start:
|
if start:
|
||||||
end = self.tile_height - crop
|
end = self.tile_height - crop
|
||||||
|
@ -144,7 +144,7 @@ class Timeline(Audio):
|
||||||
ntiles = int(math.ceil(float(self.frames)/self.input_tile_width))
|
ntiles = int(math.ceil(float(self.frames)/self.input_tile_width))
|
||||||
self.tiles = []
|
self.tiles = []
|
||||||
for i in range(ntiles):
|
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.tiles.append(tile)
|
||||||
|
|
||||||
self.set_state(gst.STATE_PLAYING)
|
self.set_state(gst.STATE_PLAYING)
|
||||||
|
|
Loading…
Reference in a new issue