projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a988cab
)
Update servers list after connecting to the signal.
author
Carl Hetherington
<cth@carlh.net>
Thu, 23 Nov 2023 00:23:37 +0000
(
01:23
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 23 Nov 2023 00:23:37 +0000
(
01:23
+0100)
Otherwise it can happen that a signal is emitted before we connect
to it, and then after that no more signals come because nothing
changes.
src/lib/j2k_encoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/j2k_encoder.cc
b/src/lib/j2k_encoder.cc
index d2e840f85f2a87ce647789321525fb5a14782bad..7c9777c1694ed77df52f5af315b3c928e08a2252 100644
(file)
--- a/
src/lib/j2k_encoder.cc
+++ b/
src/lib/j2k_encoder.cc
@@
-62,7
+62,6
@@
J2KEncoder::J2KEncoder(shared_ptr<const Film> film, Writer& writer)
, _history (200)
, _writer (writer)
{
- servers_list_changed ();
}
@@
-81,6
+80,7
@@
J2KEncoder::begin ()
_server_found_connection = EncodeServerFinder::instance()->ServersListChanged.connect(
boost::bind(&J2KEncoder::servers_list_changed, this)
);
+ servers_list_changed ();
}