Skip to content

Commit

Permalink
Fix bug preventing CG clear
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Jul 7, 2024
1 parent f37678b commit 9d74a86
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/playout/playout
Original file line number Diff line number Diff line change
Expand Up @@ -289,17 +289,22 @@ class Graphic(PlannedItem):
# NRK clock used to do it! ^_^
if self._seconds_left() >= 5.0:
await asyncio.sleep(self._seconds_left() - 2.0)
await CurrentPlayer.issue(f'MIXER {self.layer}1 OPACITY 0 50 easeinsine')
await CurrentPlayer.issue(f'MIXER {self.layer} OPACITY 0 50 easeinsine')

await self._completion()
await self.clear()
await CurrentPlayer.issue(f'MIXER {self.layer} CLEAR')
await CurrentPlayer.issue(f'MIXER {self.layer}1 CLEAR')
await CurrentPlayer.issue(f'MIXER {self.layer} CLEAR')

except asyncio.CancelledError:
await self.clear()
await CurrentPlayer.issue(f'MIXER {self.layer}1 CLEAR')
await CurrentPlayer.issue(f'MIXER {self.layer} CLEAR')

async def clear(self):
await CurrentPlayer.issue("CLEAR {}".format(self.layer))
await CurrentPlayer.issue(f'CG {self.layer}1 CLEAR')
await CurrentPlayer.issue(f'MIXER {self.layer}1 CLEAR')
await CurrentPlayer.issue(f'MIXER {self.layer} CLEAR')

async def prepare(self):
try:
Expand Down

0 comments on commit 9d74a86

Please sign in to comment.