forked from JumpingYang001/webrtc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: Fix VideoTrack behavior for adding/removing VideoSinks
In particular: * Trying to remove a VideoSink that was not attached should be a no-op. * Trying to remove a null VideoSink should be a no-op. * Adding the same VideoSink multiple times should a no-op, and should not create duplicate native VideoSinks. * Trying to add a null VideoSink should throw an exception in the Java layer instead of crashing in native code. This CL also adds tests that verify these behaviors. Bug: webrtc:9403 Change-Id: I928b7bb7f683634e287d7fec9e26f4179f73c150 Reviewed-on: https://webrtc-review.googlesource.com/83322 Commit-Queue: Magnus Jedvert <[email protected]> Reviewed-by: Paulina Hensman <[email protected]> Cr-Commit-Position: refs/heads/master@{#23602}
- Loading branch information
1 parent
493c78a
commit b7700d3
Showing
2 changed files
with
108 additions
and
5 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