From: telecaster Date: Tue, 25 Mar 2025 08:02:05 +0000 (+0100) Subject: fix gst race condition with some sleep X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=300b0820a32a7e98c90c65a37b7a1f6ea389a92b;p=telecaster-server.git fix gst race condition with some sleep --- diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index 4413ddb..001fbf7 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -5,6 +5,7 @@ import shlex import subprocess import sys import yaml +import time from threading import Thread from copy import deepcopy @@ -109,6 +110,7 @@ class TeleCaster(Thread): **self.conf["audio"]["gstreamer"], **self.conf["server"]) stream = TeleCasterGStream(pipeline) + time.sleep(1) stream.start() deefuzzer_local_conf = deepcopy(deefuzzer_station_conf) @@ -142,6 +144,7 @@ class TeleCaster(Thread): **self.conf["server"]) stream = TeleCasterGStream(pipeline) stream.start() + time.sleep(1) deefuzzer_local_conf = deepcopy(deefuzzer_station_conf) # print(deefuzzer_local_conf) diff --git a/bin/streaming/telecaster.sh b/bin/streaming/telecaster.sh index d7d804e..70a0aaf 100755 --- a/bin/streaming/telecaster.sh +++ b/bin/streaming/telecaster.sh @@ -15,9 +15,9 @@ TELECASTER_PATH=/srv/telecaster/telecaster-server/ konsole & # qjackctl & -sleep 1 +#sleep 3 /srv/telecaster/telecaster-server/bin/streaming/telecaster.py /etc/telecaster/telecaster.yml & -sleep 3 +#sleep 3 # JACK ports setup #