Skip to content

Commit

Permalink
Metadata streaming: move early metadata announcer timer definition to…
Browse files Browse the repository at this point in the history
… above announcer internal function.

Define early metadata announcer before it is used anywhere.
This will be backported to LTS20.
  • Loading branch information
josephsl committed Jan 23, 2021
1 parent 0e7194f commit 4f8d0b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/appModules/splstudio/splmisc.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ def metadataStatus():
return _("Metadata streaming configured for URL's {URL}").format(URL=urls)


# Handle a case where instant profile ssitch occurs twice within the switch time-out.
_earlyMetadataAnnouncer = None


# Internal metadata status announcer.
# The idea is to pause for a while and announce the status message and playing the accompanying wave file.
# This is necessary in order to allow extension points to work correctly
Expand All @@ -466,10 +470,6 @@ def _metadataAnnouncerInternal(status, startup=False):
_earlyMetadataAnnouncer = None


# Handle a case where instant profile ssitch occurs twice within the switch time-out.
_earlyMetadataAnnouncer = None


def _earlyMetadataAnnouncerInternal(status, startup=False):
global _earlyMetadataAnnouncer
if _earlyMetadataAnnouncer is not None:
Expand Down

0 comments on commit 4f8d0b4

Please sign in to comment.