webrtc/sdk
Magnus Jedvert b7700d370d 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 <magjed@webrtc.org>
Reviewed-by: Paulina Hensman <phensman@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23602}
2018-06-13 15:51:17 +00:00
..
android Android: Fix VideoTrack behavior for adding/removing VideoSinks 2018-06-13 15:51:17 +00:00
objc Adding WebRTC-Audio-ForceNoTWCC field trial 2018-06-13 12:30:59 +00:00
BUILD.gn Add HeaderExtensions to RtpParameters 2018-06-12 17:01:40 +00:00
OWNERS Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00