Skip to content

Commit

Permalink
Update service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Jun 27, 2023
1 parent 8aa0f07 commit 5ae8f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovos_audio/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PlaybackService(Thread):
def __init__(self, ready_hook=on_ready, error_hook=on_error,
stopping_hook=on_stopping, alive_hook=on_alive,
started_hook=on_started, watchdog=lambda: None,
bus=None, disable_ocp=False):
bus=None, disable_ocp=False, validate_source=True):
super(PlaybackService, self).__init__()

LOG.info("Starting Audio Service")
Expand Down Expand Up @@ -78,7 +78,7 @@ def __init__(self, ready_hook=on_ready, error_hook=on_error,
self.status.set_error(e)

try:
self.audio = AudioService(self.bus, disable_ocp=disable_ocp)
self.audio = AudioService(self.bus, disable_ocp=disable_ocp, validate_source)
except Exception as e:
LOG.exception(e)
self.status.set_error(e)
Expand Down

0 comments on commit 5ae8f10

Please sign in to comment.