Niels Möller 0f405825c7 New class FakePeriodicVideoTrackSource, simplifying shutdown logic.
Previous code had a FakePeriodicVideoSource and a
VideoTrackSource, where the latter is reference counted and
outlives the former. That results in potential races when
RemoveSink is called on the VideoTrackSource after the
FakePeriodicVideoSource is destroyed, with a complicated sequence
to do correct shutdown.

The new class, FakePeriodicVideoTrackSource, owns a
FakePeriodicVideoSource, and they get the same lifetime.

Bug: webrtc:6353
Change-Id: Ic33b393e00a31fa28893dce2018948d3f90e0a9e
Reviewed-on: https://webrtc-review.googlesource.com/76961
Commit-Queue: Niels Moller <nisse@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23320}
2018-05-21 10:27:55 +00:00
..
2018-05-14 06:57:38 +00:00
2017-10-30 18:08:29 +00:00
2018-02-13 10:47:24 +00:00
2017-12-12 09:27:07 +00:00
2018-02-03 19:28:58 +00:00
2018-03-20 18:37:49 +00:00
2018-03-20 18:37:49 +00:00
2017-10-30 18:08:29 +00:00
2018-05-14 06:57:38 +00:00