Repository navigation
linux-jack: Keep the client on unchanged updates; fallback timestamps use the server rate (Refs #1464) - #1557
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1464 (split from it: one small PR per fix)
What and why
jack-input.c.h:jack_update()stores the client name asOBS Studio: <name>but compared it with the bare source name, so every update (even with unchanged settings) closed and reopened the JACK client and dropped capture. It now compares without the prefix.jack-wrapper.c.h: whenjack_get_cycle_times()fails, the guessed timestamp divided bydata->samples_per_sec, which is never set (0): integer divide by zero. It now uses the server rate it just read (out.samples_per_sec).RED → GREEN
adea8564baddstest/cmocka/test_jack_input.c(JACK replaced bytest/cmocka/jack-stubs/jack/jack.hand fake libjack functions, so it builds without ENABLE_JACK). On masterunchanged_update_keeps_clientfails (3 client opens instead of 1) andfallback_timestamp_uses_server_ratedies with SIGFPE (divide by zero);renamed_source_reopens_clientpasses (guard).Checklist
masterdocs/features.mdis added (wording from fix: 20 bug fixes in libobs callbacks, muxer, audio and build #1464)./lintpasses