summaryrefslogtreecommitdiff
path: root/src/lib/remote_j2k_encoder_thread.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-20 00:31:22 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-22 13:29:58 +0100
commite32e6654b983bf4928b6f27a627b1e6305188cf6 (patch)
tree28da2444bfe057fce97522df3eb7fa136eebf901 /src/lib/remote_j2k_encoder_thread.h
parent650f919fdda3632262ddbf98d1a37a5e98eaedda (diff)
Move remote backoff sleep to before we pop a frame from the queue.
Otherwise in the case of failure it can take a while for the frame to become available again for a functioning thread to encode.
Diffstat (limited to 'src/lib/remote_j2k_encoder_thread.h')
-rw-r--r--src/lib/remote_j2k_encoder_thread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/remote_j2k_encoder_thread.h b/src/lib/remote_j2k_encoder_thread.h
index f3fe7f94a..5b203946c 100644
--- a/src/lib/remote_j2k_encoder_thread.h
+++ b/src/lib/remote_j2k_encoder_thread.h
@@ -14,6 +14,10 @@ public:
return _server;
}
+ int backoff() const override {
+ return _remote_backoff;
+ }
+
private:
EncodeServerDescription _server;
/** Number of seconds that we currently wait between attempts to connect to the server */