-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As we now have the capacity to set fd->no_ref from within a thread, when embed_ref==2 and cram_generate_reference fails, we also need to guard against it changing while other threads are executing. As long as an encoder is 100% consistent from start to finish with no_ref it's fine, so we fetch a local copy of this at the start. Embed_ref=2 is also incompatible with multi-ref mode, so we also switch to no_ref for that scenario too. This isn't ideal when we flip back out of multi-ref mode though. Also fixed a dubious looking fd->multi_seq assignment outside of a thread lock.
- Loading branch information
1 parent
314c167
commit e8b30ba
Showing
3 changed files
with
74 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters