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.
Remove 'secondary sink' concept from webrtc::VideoReceiveStream.
In practice, support for multiple sinks is not needed and supporting the API that allows for dynamically adding/removing sinks at runtime, adds to the complexity of the implementation. This CL removes that Add/Remove methods for secondary sinks as well as vectors of callback pointers (which were either of size 0 or 1). Instead, an optional callback pointer is added to the config struct for VideoReceiveStream, that an implementation can consider to be const and there's not a need to do thread synchronization for that pointer for every network packet. As part of webrtc:11993, this simplifies the work towards keeping the processing of network packets on the network thread. The secondary sinks, currently operate on the worker thread. Bug: webrtc:11993 Change-Id: I10c473e57d3809527a1b689f4352e903a4c78168 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/207421 Commit-Queue: Tommi <[email protected]> Reviewed-by: Rasmus Brandt <[email protected]> Cr-Commit-Position: refs/heads/master@{#33272}
- Loading branch information
Tomas Gunnarsson
authored and
Commit Bot
committed
Feb 15, 2021
1 parent
a33f41b
commit 8408c99
Showing
14 changed files
with
123 additions
and
272 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
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
Oops, something went wrong.