Repository navigation
Record anywhere - #9540
Merged
Merged
Record anywhere#9540
Conversation
grliszas14
force-pushed
the
record_anywhere
branch
from
October 3, 2025 16:12
19403be to
96eb492
Compare
grliszas14
marked this pull request as ready for review
October 6, 2025 10:35
luapmartin
requested changes
Oct 6, 2025
Member
luapmartin
reviewed
Oct 7, 2025
grliszas14
force-pushed
the
record_anywhere
branch
from
October 8, 2025 14:36
e601fc1 to
dff3ac6
Compare
luapmartin
reviewed
Oct 8, 2025
grliszas14
force-pushed
the
record_anywhere
branch
from
October 9, 2025 07:32
dff3ac6 to
ce3258a
Compare
kryksyh
approved these changes
Oct 9, 2025
| Track* PendingTracks::FindPendingTrack(const Track& track) const | ||
| { | ||
| auto pTrack = &track; | ||
| if (!mPendingUpdates->empty()) { |
Member
There was a problem hiding this comment.
I believe find_if would work fine even if the container is empty, maybe something like this would be easier to read
Track* PendingTracks::FindPendingTrack(const Track& track) const
{
auto id = track.GetId();
auto pred = [id](const auto& pTrack) {
return pTrack->GetId() == id;
};
auto it = std::find_if(mPendingUpdates->begin(), mPendingUpdates->end(), pred);
return it != mPendingUpdates->end() ? *it : nullptr;
}
|
|
||
| // audio thread updates the pending clip | ||
| // make original clip point to the pending clip's data | ||
| origClip->LinkToOtherSource(*pendingClip.get()); |
Member
There was a problem hiding this comment.
That's very nice, this way we could make shallow copies that do not detach on edit
grliszas14
force-pushed
the
record_anywhere
branch
from
October 9, 2025 18:50
8f64f04 to
37c73ad
Compare
luapmartin
approved these changes
Oct 10, 2025
grliszas14
force-pushed
the
record_anywhere
branch
from
October 10, 2025 09:54
37c73ad to
bc32852
Compare
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.

Resolves: #9403
Recommended:
QA: