Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m93 branch-heads/4577. #14

Merged
merged 5 commits into from
Dec 7, 2021
Merged

m93 branch-heads/4577. #14

merged 5 commits into from
Dec 7, 2021

Conversation

cloudwebrtc
Copy link
Member

No description provided.

@cloudwebrtc
Copy link
Member Author

I have passed the iOS/macOS full platform and full architecture compilation, we need to confirm the Android platform, and can be merged after the test is correct

@cloudwebrtc
Copy link
Member Author

I tried to compile on windows, android, macOS, and android, everything seems to be ok.

@hiroshihorie
Copy link
Member

Great!! yes we should check if our previously applied android patches are still relevant (required).
(I think recent versions of WebRTC already does some better null checking related to simulcast)
Could you take a look @davidliu ? 🙏

@davidliu
Copy link
Contributor

davidliu commented Dec 6, 2021

Looks like #11 is still required for NPE handling. IIRC, the patch I pulled that from was fairly recent (Oct 2021ish) so probably isn't in m93.

@davidzhao
Copy link
Member

Looks like #11 is still required for NPE handling. IIRC, the patch I pulled that from was fairly recent (Oct 2021ish) so probably isn't in m93.

I believe they are included in this branch (as this is a diff from chrome M93 to main). @davidliu could you confirm this is working as expected for Android? Then we can merge & release.

@davidliu
Copy link
Contributor

davidliu commented Dec 6, 2021

Yeah, looked at the branch's code, the appropriate NPE handling is missing (it reverted back to the old non NPE handling code).

@davidzhao
Copy link
Member

Yeah, looked at the branch's code, the appropriate NPE handling is missing (it reverted back to the old non NPE handling code).

ah I understand now. @cloudwebrtc could you re-apply #11? Are other patches kept in this PR?

@cloudwebrtc
Copy link
Member Author

cloudwebrtc commented Dec 6, 2021

@cloudwebrtc @davidliu The problem seems to be more complicated than expected, Some patches are indeed covered

#11
#7

I haven't checked all the patches.

@cloudwebrtc
Copy link
Member Author

This way of maintaining repo does not seem to be perfect. Once the new upstream is merged, the patches we have done will be overwritten without prompting.

@davidliu
Copy link
Contributor

davidliu commented Dec 6, 2021

#11 isn't covered.

https://github.com/webrtc-sdk/webrtc/blob/upgrade-to-m93/media/engine/simulcast_encoder_adapter.cc#L717

It's changed since M92, but it still doesn't cover the case where the primary encoder is null.

@cloudwebrtc
Copy link
Member Author

@davidliu I tried to re-add the difference in #11 to this branch, can you review and confirm its correctness?
8bbc6bd

@davidliu
Copy link
Contributor

davidliu commented Dec 6, 2021

Checked out the new commit, LGTM.

@davidzhao
Copy link
Member

davidzhao commented Dec 6, 2021

This way of maintaining repo does not seem to be perfect. Once the new upstream is merged, the patches we have done will be overwritten without prompting.

That's a good point.. the other two options are

  1. Merge & rebase:
    • have an upstream branch that is always updated to Google's M releases
    • have our changes in main
    • for each release, merge from upstream and rebase our changes on top
    • create release branch for it, that's mostly frozen (since main will be rebased again)
  2. Patch files:
    • similar to Shiguredo's approach of keeping .patch files and updating them

Thinking out loud.. perhaps 1. is better than our current approach.. it'll make it clear what we have changed.

@cloudwebrtc
Copy link
Member Author

@hiroshihorie #7 This PR also seems to be covered. We need to confirm whether it affects iOS

Copy link
Member

@hiroshihorie hiroshihorie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cloudwebrtc cloudwebrtc merged commit 09362d9 into main Dec 7, 2021
@cloudwebrtc cloudwebrtc deleted the upgrade-to-m93 branch December 7, 2021 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants